1.5.1 • Published 5 years ago
stripe-web v1.5.1
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