0.11.1-beta • Published 3 years ago
stripe-workers v0.11.1-beta
stripe-workers
An unofficial stripe-sdk for workers.dev and environments that use fetch
BETA
This project is in beta, this SDK is built to follow the offical stripe-api & follow the namespace structure of stripe-node . If you find any errors please file an issue
Setup
Add to project
yarn add stripe-workers
Add to code
import { Stripe } from 'stripe-workers'
const stripe = new Stripe('Stripe-Secret-Key', {
apiVersion: '2020-08-27', //(optional: string)
fetch: CustomFetch, //(optional: Function) window.fetch will be used
userAgent: 'stripe-workers/version', //(optional: string)
})
Examples of use
👩 💻 Developing
src/index.ts
is the starting point.src/resources/
the resources directory contains all the code for the stripe API resources that this package support.src/client.ts
contains the fetch client.
🤢 Issues
If you run into issues with this specific project, please feel free to file an issue here.
0.11.0-beta
3 years ago
0.11.1-beta
3 years ago
0.10.1-beta
3 years ago
0.10.0-beta
3 years ago
0.9.1-beta
3 years ago
0.9.0-beta
3 years ago
0.8.0-beta
3 years ago