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));