From a9650ef020a9cda7ad50207f0716efc8fdcf5353 Mon Sep 17 00:00:00 2001 From: cedvandenbosch Date: Thu, 7 Nov 2024 15:09:16 +0100 Subject: [PATCH] fix return body of create setup --- example/server/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/server/src/index.ts b/example/server/src/index.ts index 10ea8728..b12d3380 100644 --- a/example/server/src/index.ts +++ b/example/server/src/index.ts @@ -370,7 +370,7 @@ app.post('/create-setup-intent', async (req, res) => { //@ts-ignore const setupIntent = await stripe.setupIntents.create({ ...{ - customer: customer.id, + customerId: customer.id, payment_method_types, usage: ['off_session'], },