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 6abaaa5 commit bb5bba6
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 bb5bba6

Please sign in to comment.