Skip to content

Commit

Permalink
fix: SDK Processing - Go to payments not working fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pritish Budhiraja committed Dec 11, 2023
1 parent d7bb46e commit 091a53c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screens/HyperSwitch/SDKPayment/TestPayment.res
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ let make = (
)
if status === "succeeded" {
setPaymentStatus(_ => SUCCESS)
setPaymentId(_ => paymentIdFromPaymemtIntentClientSecret)
} else if status === "failed" {
setPaymentStatus(_ => FAILED(""))
setPaymentId(_ => paymentIdFromPaymemtIntentClientSecret)
} else if status === "processing" {
setPaymentStatus(_ => PROCESSING)
} else {
setPaymentStatus(_ => INCOMPLETE)
}
setPaymentId(_ => paymentIdFromPaymemtIntentClientSecret)
if status->Js.String2.length <= 0 && keyValue->Js.String2.length > 0 {
getClientSecret()->ignore
}
Expand Down Expand Up @@ -116,6 +115,7 @@ let make = (
buttonOnClick={_ => onProceed(~paymentId)->ignore}
customWidth
bgColor="bg-yellow-pending_page_bg"
isButtonVisible={paymentId->Belt.Option.isSome}
/>

| PROCESSING =>
Expand All @@ -126,6 +126,7 @@ let make = (
buttonOnClick={_ => onProceed(~paymentId)->ignore}
customWidth
bgColor="bg-yellow-pending_page_bg"
isButtonVisible={paymentId->Belt.Option.isSome}
/>
| _ => React.null
}}
Expand Down

0 comments on commit 091a53c

Please sign in to comment.