From 091a53cb555fcc96f8c2afeb9e78ef0d0199f8ae Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Mon, 11 Dec 2023 17:15:57 +0530 Subject: [PATCH] fix: SDK Processing - Go to payments not working fix --- src/screens/HyperSwitch/SDKPayment/TestPayment.res | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/screens/HyperSwitch/SDKPayment/TestPayment.res b/src/screens/HyperSwitch/SDKPayment/TestPayment.res index a085f26ea..a09ef692c 100644 --- a/src/screens/HyperSwitch/SDKPayment/TestPayment.res +++ b/src/screens/HyperSwitch/SDKPayment/TestPayment.res @@ -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 } @@ -116,6 +115,7 @@ let make = ( buttonOnClick={_ => onProceed(~paymentId)->ignore} customWidth bgColor="bg-yellow-pending_page_bg" + isButtonVisible={paymentId->Belt.Option.isSome} /> | PROCESSING => @@ -126,6 +126,7 @@ let make = ( buttonOnClick={_ => onProceed(~paymentId)->ignore} customWidth bgColor="bg-yellow-pending_page_bg" + isButtonVisible={paymentId->Belt.Option.isSome} /> | _ => React.null }}