From c3aed42b9f218b8c44e2574f3032081cd7a45999 Mon Sep 17 00:00:00 2001
From: sakksham7 <130480324+sakksham7@users.noreply.github.com>
Date: Mon, 25 Nov 2024 16:09:55 +0530
Subject: [PATCH 1/4] fix: crypto currency payment method (#810)
---
src/Payments/PaymentMethodsWrapper.res | 15 ++++++++-------
src/Utilities/DynamicFieldsUtils.res | 1 +
2 files changed, 9 insertions(+), 7 deletions(-)
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)
Date: Mon, 25 Nov 2024 10:41:48 +0000
Subject: [PATCH 2/4] chore(release): 0.103.1 [skip ci]
## [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))
---
CHANGELOG.md | 7 +++++++
package-lock.json | 4 ++--
package.json | 2 +-
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fdf09aae..3274590d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [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..46a50c8f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "orca-payment-page",
- "version": "0.103.0",
+ "version": "0.103.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "orca-payment-page",
- "version": "0.103.0",
+ "version": "0.103.1",
"hasInstallScript": true,
"dependencies": {
"@glennsl/rescript-fetch": "^0.2.0",
diff --git a/package.json b/package.json
index a48bd56a..09a1f897 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
- "version": "0.103.0",
+ "version": "0.103.1",
"main": "index.js",
"private": true,
"dependencies": {
From 444ec53f22fda34c743292ff731f5696dd668e78 Mon Sep 17 00:00:00 2001
From: Pritish Budhiraja
Date: Tue, 26 Nov 2024 10:15:12 +0530
Subject: [PATCH 3/4] chore: set logging url via env (#807)
Co-authored-by: Shiva Nandan
---
webpack.common.js | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/webpack.common.js b/webpack.common.js
index c3cea6c8..18a9015f 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -50,7 +50,6 @@ const getEnvironmentDomain = (prodDomain, integDomain, defaultDomain) => {
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;
From bbc0283f85257a9459c2bb3806e5448c26d6d931 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Tue, 26 Nov 2024 04:47:10 +0000
Subject: [PATCH 4/4] chore(release): 0.103.2 [skip ci]
## [0.103.2](https://github.com/juspay/hyperswitch-web/compare/v0.103.1...v0.103.2) (2024-11-26)
---
CHANGELOG.md | 2 ++
package-lock.json | 4 ++--
package.json | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3274590d..7480bae4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,5 @@
+## [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)
diff --git a/package-lock.json b/package-lock.json
index 46a50c8f..35703023 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "orca-payment-page",
- "version": "0.103.1",
+ "version": "0.103.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "orca-payment-page",
- "version": "0.103.1",
+ "version": "0.103.2",
"hasInstallScript": true,
"dependencies": {
"@glennsl/rescript-fetch": "^0.2.0",
diff --git a/package.json b/package.json
index 09a1f897..96b13326 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
- "version": "0.103.1",
+ "version": "0.103.2",
"main": "index.js",
"private": true,
"dependencies": {