diff --git a/examples/webhook-signing/express/main.ts b/examples/webhook-signing/express/main.ts index eb0b68df4c..d5bdb83993 100755 --- a/examples/webhook-signing/express/main.ts +++ b/examples/webhook-signing/express/main.ts @@ -8,7 +8,7 @@ import {AddressInfo} from 'net'; env.config(); const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', }); const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET; diff --git a/examples/webhook-signing/koa/main.ts b/examples/webhook-signing/koa/main.ts index 3f25070a05..8768a1248b 100755 --- a/examples/webhook-signing/koa/main.ts +++ b/examples/webhook-signing/koa/main.ts @@ -12,7 +12,7 @@ env.config(); const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET; const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', }); const handleWebhook = async (ctx: Koa.ParameterizedContext, next: Koa.Next) => { diff --git a/examples/webhook-signing/nextjs/pages/api/webhooks.ts b/examples/webhook-signing/nextjs/pages/api/webhooks.ts index 057f53c62a..f287872f41 100644 --- a/examples/webhook-signing/nextjs/pages/api/webhooks.ts +++ b/examples/webhook-signing/nextjs/pages/api/webhooks.ts @@ -6,7 +6,7 @@ const handler = async ( res: NextApiResponse ): Promise => { const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', }); const webhookSecret: string = process.env.STRIPE_WEBHOOK_SECRET; diff --git a/examples/webhook-signing/test/main.ts b/examples/webhook-signing/test/main.ts index 3bf9750456..e4d3eb949f 100755 --- a/examples/webhook-signing/test/main.ts +++ b/examples/webhook-signing/test/main.ts @@ -42,7 +42,7 @@ env.config({ const webhookSecret = process.env.STRIPE_WEBHOOK_SECRET; const stripe = new Stripe(process.env.STRIPE_SECRET_KEY, { - apiVersion: '2022-11-15', + apiVersion: '2023-08-16', }); const payload = Buffer.from(