Skip to content

Commit

Permalink
fix: added isConfirmCall prop,
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrishab Srivatsa committed Apr 30, 2024
1 parent 3e7ccaa commit 62d6dcb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 62d6dcb

Please sign in to comment.