stripe-web
v1.5.1
Published
- This lib is WIP - TypeScript typings for Stripe web bundle - `loadStripe()` loads Stripe bundle from `https://js.stripe.com/v3/` - `getStripe()` returns global Stripe object, if one present
Downloads
387
Readme
stripe-web
- This lib is WIP
- TypeScript typings for Stripe web bundle
loadStripe()
loads Stripe bundle fromhttps://js.stripe.com/v3/
getStripe()
returns global Stripe object, if one present
Install
npm i stripe-web
Usage
import {loadStripe, getStripe} from 'stripe-web';
const Stripe = await loadStripe();
const Stripe = getStripe();
const stripe = Stripe('pk_...');
stripe.elements();
stripe.paymentRequest();
/// etc...
License
MIT