From e71c09daea7579703a4309a7f3061869b08acd98 Mon Sep 17 00:00:00 2001 From: Edgar Alcolea Date: Wed, 13 Dec 2023 13:09:07 +0100 Subject: [PATCH 1/2] fix: fix property name in CreateSetupIntentParams --- src/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/index.ts b/src/types/index.ts index 2f5f15e1..42592e52 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -195,7 +195,7 @@ export type CollectSetupIntentPaymentMethodParams = { }; export type CreateSetupIntentParams = { - customerId?: string; + customer?: string; }; export type PaymentIntentResultType = From 897cfb70ac07969c4dd8b8f83de6eeb7c94e105a Mon Sep 17 00:00:00 2001 From: Edgar Alcolea Date: Wed, 13 Dec 2023 13:16:35 +0100 Subject: [PATCH 2/2] fix: fix param name at SetupIntentScreen.tsx --- dev-app/src/screens/SetupIntentScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-app/src/screens/SetupIntentScreen.tsx b/dev-app/src/screens/SetupIntentScreen.tsx index 5ad55646..b5f1ea5f 100644 --- a/dev-app/src/screens/SetupIntentScreen.tsx +++ b/dev-app/src/screens/SetupIntentScreen.tsx @@ -228,7 +228,7 @@ export default function SetupIntentScreen() { } const response = await createSetupIntent({ - customerId: resp.id, + customer: resp.id, }); setupIntent = response.setupIntent; setupIntentError = response.error;