Load the promisified stripe api in the browser.
npm install load-stripepromisified using stripe-as-promised.#### Npm
``console`
npm install load-stripe
`js
const load = require("load-stripe");
// Optionally override the stripe api version
load.version = 'https://js.stripe.com/v2/'; // This is the default.
// Async load stripe when you need it.
load("MY_PUBLISHABLE_API_KEY").then((stripe)=> {
return stripe.card.createToken(some_source).then(...);
});
`
* Use npm test` to run tests.
Please feel free to create a PR!