- 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
npm i stripe-web
import {loadStripe, getStripe} from 'stripe-web';
const Stripe = await loadStripe();
const Stripe = getStripe();
const stripe = Stripe('pk_...');
stripe.elements();
stripe.paymentRequest();
/// etc...
MIT