diff --git a/testProjects/cloudflare-pages/functions/index.js b/testProjects/cloudflare-pages/functions/index.js index 2212d64b9e..f468b35a40 100644 --- a/testProjects/cloudflare-pages/functions/index.js +++ b/testProjects/cloudflare-pages/functions/index.js @@ -5,7 +5,7 @@ export async function onRequestPost({env, request}) { const body = await request.text(); const stripe = new Stripe(env.STRIPE_API_KEY, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', httpClient: Stripe.createFetchHttpClient(), }); const webCrypto = Stripe.createSubtleCryptoProvider(); diff --git a/testProjects/mjs-ts/index.ts b/testProjects/mjs-ts/index.ts index 61b857b77d..cffb780b36 100644 --- a/testProjects/mjs-ts/index.ts +++ b/testProjects/mjs-ts/index.ts @@ -1,13 +1,13 @@ import DefaultStripe, {Stripe} from 'stripe'; const stripe = new Stripe(process.argv[2], { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', host: process.env.STRIPE_MOCK_HOST || 'localhost', port: process.env.STRIPE_MOCK_PORT || 12111, protocol: 'http', }); const defaultStripe = new DefaultStripe(process.argv[2], { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', host: process.env.STRIPE_MOCK_HOST || 'localhost', port: process.env.STRIPE_MOCK_PORT || 12111, protocol: 'http',