From f884e6e897b57b7cb8733f0801d82df2fec459ec Mon Sep 17 00:00:00 2001 From: Richard Marmorstein Date: Thu, 17 Aug 2023 02:15:06 -0700 Subject: [PATCH] More tests --- testProjects/cloudflare-pages/functions/index.js | 2 +- testProjects/mjs-ts/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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',