Clone and run npm install, If you wish to update to the latest Ionic@angular delete the node_modules
and run below,
npm i @ionic/angular@latest --save
ionic cordova plugin add cordova-plugin-stripe
npm install --save @ionic-native/stripe@4
/src/payments/payments.page.ts
this.stripe.setPublishableKey('pk_test_xxxxxxxxxxx');