Skip to content

Commit

Permalink
fix: redirect to be send inside confirm params (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja authored May 20, 2024
1 parent dd8c689 commit db770dc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/screens/SDKPayment/WebSDK.res
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,13 @@ module CheckoutForm = {
[
(
"confirmParams",
[("return_url", returnUrl->JSON.Encode.string)]->Dict.fromArray->JSON.Encode.object,
[
("return_url", returnUrl->JSON.Encode.string),
("redirect", "always"->JSON.Encode.string),
]
->Dict.fromArray
->JSON.Encode.object,
),
("redirect", "always"->JSON.Encode.string),
]->LogicUtils.getJsonFromArrayOfJson
hyper.confirmPayment(confirmParams)
->then(val => {
Expand Down

0 comments on commit db770dc

Please sign in to comment.