diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf09aae..7480bae4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [0.103.2](https://github.com/juspay/hyperswitch-web/compare/v0.103.1...v0.103.2) (2024-11-26) + +## [0.103.1](https://github.com/juspay/hyperswitch-web/compare/v0.103.0...v0.103.1) (2024-11-25) + + +### Bug Fixes + +* crypto currency payment method ([#810](https://github.com/juspay/hyperswitch-web/issues/810)) ([c3aed42](https://github.com/juspay/hyperswitch-web/commit/c3aed42b9f218b8c44e2574f3032081cd7a45999)) + # [0.103.0](https://github.com/juspay/hyperswitch-web/compare/v0.102.9...v0.103.0) (2024-11-21) diff --git a/package-lock.json b/package-lock.json index 779b2d57..35703023 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.103.0", + "version": "0.103.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.103.0", + "version": "0.103.2", "hasInstallScript": true, "dependencies": { "@glennsl/rescript-fetch": "^0.2.0", diff --git a/package.json b/package.json index a48bd56a..96b13326 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.103.0", + "version": "0.103.2", "main": "index.js", "private": true, "dependencies": { diff --git a/src/Payments/PaymentMethodsWrapper.res b/src/Payments/PaymentMethodsWrapper.res index cb4cf062..b9d2585b 100644 --- a/src/Payments/PaymentMethodsWrapper.res +++ b/src/Payments/PaymentMethodsWrapper.res @@ -40,17 +40,15 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => { let areRequiredFieldsValid = Recoil.useRecoilValueFromAtom(areRequiredFieldsValid) let areRequiredFieldsEmpty = Recoil.useRecoilValueFromAtom(areRequiredFieldsEmpty) - let complete = areRequiredFieldsValid - React.useEffect(() => { - setFieldComplete(_ => complete) + setFieldComplete(_ => areRequiredFieldsValid) None - }, [complete]) + }, [areRequiredFieldsValid]) let empty = areRequiredFieldsEmpty UtilityHooks.useHandlePostMessages( - ~complete, + ~complete=areRequiredFieldsValid, ~empty, ~paymentType=paymentMethodDetails.paymentMethodName, ) @@ -59,7 +57,7 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => { let json = ev.data->safeParse let confirm = json->getDictFromJson->ConfirmType.itemToObjMapper if confirm.doSubmit { - if complete { + if areRequiredFieldsValid { let countryCode = Country.getCountry(paymentMethodName) ->Array.filter(item => item.countryName == country) @@ -105,7 +103,10 @@ let make = (~paymentType: CardThemeType.mode, ~paymentMethodName: string) => { paymentMethodName, isManualRetryEnabled, phoneNumber.value, - (selectedBank, currency, requiredFieldsBody), + selectedBank, + currency, + requiredFieldsBody, + areRequiredFieldsValid, )) useSubmitPaymentData(submitCallback)
{ const backendDomain = getEnvironmentDomain("checkout", "dev", "beta"); const confirmDomain = getEnvironmentDomain("api", "integ-api", "sandbox"); -const logDomain = getEnvironmentDomain("api", "integ-api", "sandbox"); const backendEndPoint = envBackendUrl || `https://${backendDomain}.hyperswitch.io/api`; @@ -58,8 +57,7 @@ const backendEndPoint = const confirmEndPoint = envBackendUrl || `https://${confirmDomain}.hyperswitch.io`; -const logEndpoint = - envLoggingUrl || `https://${logDomain}.hyperswitch.io/logs/sdk`; +const logEndpoint = envLoggingUrl; const loggingLevel = "DEBUG"; const maxLogsPushedPerEventName = 100;