diff --git a/src/screens/HyperSwitch/SDKPayment/TestPayment.res b/src/screens/HyperSwitch/SDKPayment/TestPayment.res index dc9e9b8ea..d21667b6a 100644 --- a/src/screens/HyperSwitch/SDKPayment/TestPayment.res +++ b/src/screens/HyperSwitch/SDKPayment/TestPayment.res @@ -135,7 +135,6 @@ let make = ( elementOptions paymentElementOptions returnUrl - isConfigureConnector={true} amount setClientSecret /> @@ -153,7 +152,6 @@ let make = ( elementOptions paymentElementOptions returnUrl - isConfigureConnector={true} amount setClientSecret /> diff --git a/src/screens/HyperSwitch/SDKPayment/WebSDK.res b/src/screens/HyperSwitch/SDKPayment/WebSDK.res index 2f0bce98a..bb2be9d4f 100644 --- a/src/screens/HyperSwitch/SDKPayment/WebSDK.res +++ b/src/screens/HyperSwitch/SDKPayment/WebSDK.res @@ -33,7 +33,6 @@ module CheckoutForm = { ~layout="", ~methodsOrder=[], ~returnUrl, - ~isConfigureConnector, ~saveViewToSdk=false, ~publishableKey, ~isSpaceAccordion=false, @@ -215,12 +214,6 @@ module CheckoutForm = { }) ->ignore } - let defaultHandleSubmit = () => { - setPaymentStatus(_ => LOADING) - Js.Global.setTimeout(() => { - setPaymentStatus(_ => SUCCESS) - }, 1000)->ignore - } React.useEffect1(() => { let id = Js.String2.split(clientSecret, "_secret_")[0]->Belt.Option.getWithDefault("") switch Some(id) { @@ -254,7 +247,7 @@ module CheckoutForm = { customButtonStyle={`p-1 mt-2 w-full rounded-md ${primaryColor}`} onClick={_ => { setBtnState(_ => Button.Loading) - {isConfigureConnector ? handleSubmit() : defaultHandleSubmit()} + handleSubmit() hyperswitchMixPanel( ~pageName=`${url.path->LogicUtils.getListHead}`, ~contextName="sdk", @@ -298,7 +291,6 @@ let make = ( ~fontFamily="", ~fontSizeBase="", ~paymentElementOptions, - ~isConfigureConnector, ~returnUrl, ~layout="", ~methodsOrder=[], @@ -328,7 +320,6 @@ let make = ( methodsOrder layout returnUrl - isConfigureConnector saveViewToSdk publishableKey isSpaceAccordion