Skip to content

Commit

Permalink
fix: sdk button redirect issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed May 23, 2024
1 parent 767f2ed commit 74de1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/PaymentBody.res
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ let paymentTypeBody = paymentType =>

let confirmPayloadForSDKButton = (sdkHandleConfirmPayment: PaymentType.sdkHandleConfirmPayment) =>
[
("redirect", "always"->JSON.Encode.string),
(
"confirmParams",
[
("return_url", sdkHandleConfirmPayment.confirmParams.return_url->JSON.Encode.string),
("redirect", "always"->JSON.Encode.string),
]->Utils.getJsonFromArrayOfJson,
),
]->Utils.getJsonFromArrayOfJson
Expand Down

0 comments on commit 74de1f9

Please sign in to comment.