Stripe
A plugin that allows you to use Stripe's Native SDKs for Android and iOS.
https://github.com/zyramedia/cordova-plugin-stripe
Stuck on a Cordova issue?
If you're building a serious project, you can't afford to spend hours troubleshooting. Ionicβs experts offer premium advisory services for both community plugins and premier plugins.
Installation
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-stripe
$ npm install @awesome-cordova-plugins/stripe
$ ionic cap sync
$ ionic cordova plugin add cordova-plugin-stripe
$ npm install @awesome-cordova-plugins/stripe
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Β Learn More or if you're interested in an enterprise version of this plugin Contact Us
Supported Platforms
- Android
- Browser
- iOS
Usage
React
Learn more about using Ionic Native components in React
Angular
import { Stripe } from '@awesome-cordova-plugins/stripe/ngx';
constructor(private stripe: Stripe) { }
...
this.stripe.setPublishableKey('my_publishable_key');
let card = {
number: '4242424242424242',
expMonth: 12,
expYear: 2020,
cvc: '220'
}
this.stripe.createCardToken(card)
.then(token => console.log(token.id))
.catch(error => console.error(error));