From 62d6dcb5901270ffb11c7fe77e1124ebd7e32fc6 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa Date: Tue, 30 Apr 2024 14:29:09 +0530 Subject: [PATCH] fix: added isConfirmCall prop, --- src/Utilities/PaymentHelpers.res | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Utilities/PaymentHelpers.res b/src/Utilities/PaymentHelpers.res index 884017dfe..73bf1b756 100644 --- a/src/Utilities/PaymentHelpers.res +++ b/src/Utilities/PaymentHelpers.res @@ -434,6 +434,7 @@ let rec intentCall = ( String.split(clientSecret, "_secret_")->Array.get(0)->Option.getOr("") let endpoint = ApiEndpoint.getApiEndPoint( ~publishableKey=confirmParam.publishableKey, + ~isConfirmCall=isConfirm, (), ) let retrieveUri = `${endpoint}/payments/${paymentIntentID}?client_secret=${clientSecret}` @@ -777,7 +778,11 @@ let rec intentCall = ( } else { let paymentIntentID = String.split(clientSecret, "_secret_")->Array.get(0)->Option.getOr("") - let endpoint = ApiEndpoint.getApiEndPoint(~publishableKey=confirmParam.publishableKey, ()) + let endpoint = ApiEndpoint.getApiEndPoint( + ~publishableKey=confirmParam.publishableKey, + ~isConfirmCall=isConfirm, + (), + ) let retrieveUri = `${endpoint}/payments/${paymentIntentID}?client_secret=${clientSecret}` intentCall( ~fetchApi,