You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When [creating a Stripe object](https://docs.stripe.com/js/initializing), the default http client implementation is based on `node:https` which is not implemented on Workers.
5
+
6
+
However you can use an http client based on fetch ([`FetchHttpClient`](https://github.com/stripe/stripe-node/blob/54d423e5d1118dc35c4b76260889826003e00e9f/src/net/FetchHttpClient.ts)) via the `httpClient` option:
7
+
8
+
```ts
9
+
importStripefrom"stripe";
10
+
11
+
const stripe =Stripe(STRIPE_API_KEY, {
12
+
// Cloudflare Workers use the Fetch API for their API requests.
0 commit comments