Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe committed Aug 17, 2023
1 parent f397c36 commit 5dcad77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/webhook-signing/express/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/webhook-signing/koa/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion examples/webhook-signing/nextjs/pages/api/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const handler = async (
res: NextApiResponse
): Promise<void> => {
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;
Expand Down
2 changes: 1 addition & 1 deletion examples/webhook-signing/test/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5dcad77

Please sign in to comment.