https://github.com/streamich/stripe-web
Typesafe Stripe for browser
https://github.com/streamich/stripe-web
Last synced: 11 months ago
JSON representation
Typesafe Stripe for browser
- Host: GitHub
- URL: https://github.com/streamich/stripe-web
- Owner: streamich
- Created: 2019-03-04T17:07:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:48:24.000Z (over 2 years ago)
- Last Synced: 2025-07-26T06:42:16.546Z (11 months ago)
- Language: TypeScript
- Size: 2.46 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# stripe-web
- 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
## Install
```shell
npm i stripe-web
```
## Usage
```js
import {loadStripe, getStripe} from 'stripe-web';
const Stripe = await loadStripe();
const Stripe = getStripe();
const stripe = Stripe('pk_...');
stripe.elements();
stripe.paymentRequest();
/// etc...
```
## License
MIT