Load Stripe
Asynchronously loads the stripe javascript api in the browser returning a promise.
The stripe api is also promisified
using stripe-as-promised.
Installation
Npm
npm install load-stripe
Example
const load = ; // Optionally override the stripe api versionloadversion = 'https://js.stripe.com/v2/'; // This is the default. // Async load stripe when you need it.;
Contributions
- Use
npm test
to run tests.
Please feel free to create a PR!