Skip to content

ronzeidman/stripe-client-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stripe-client-ts

Import and ts definitions for Stripe.js

Stripe.js usage:

import {StripePromise} from 'stripe-client-ts/dist/stripe-promise';

... somewhere ...

StripePromise.then(Stripe => {
    ...
})

or

const Stripe = await StripePromise;
...

Checkout usage:

import {StripeCheckoutPromise} from 'stripe-client-ts/dist/checkout-promise';

... somewhere ...

StripeCheckoutPromise.then(StripeCheckout => {
    ...
})

or

const StripeCheckout = await StripeCheckoutPromise;
...

About

Import and ts definitions for Stripe.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published