From 0ce1540623ddbb95c76cb12217e05eccd7ff537a Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 19 Apr 2024 16:01:20 +0530 Subject: [PATCH 1/4] feat: normal mandate changes (#314) --- src/Components/SavedMethods.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/SavedMethods.res b/src/Components/SavedMethods.res index 12c0729b4..6ac0ccaef 100644 --- a/src/Components/SavedMethods.res +++ b/src/Components/SavedMethods.res @@ -177,7 +177,7 @@ let make = ( useSubmitPaymentData(submitCallback) let conditionsForShowingSaveCardCheckbox = React.useMemo(() => { - !isGuestCustomer && list.payment_type !== SETUP_MANDATE && displaySavedPaymentMethodsCheckbox + !isGuestCustomer && list.payment_type === NEW_MANDATE && displaySavedPaymentMethodsCheckbox }, (isGuestCustomer, list.payment_type, displaySavedPaymentMethodsCheckbox))
From c6f696512b5761026ccd72c6f04cb5fe4b33b38b Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 19 Apr 2024 10:33:14 +0000 Subject: [PATCH 2/4] chore(release): 0.44.0 [skip ci] # [0.44.0](https://github.com/juspay/hyperswitch-web/compare/v0.43.5...v0.44.0) (2024-04-19) ### Features * normal mandate changes ([#314](https://github.com/juspay/hyperswitch-web/issues/314)) ([0ce1540](https://github.com/juspay/hyperswitch-web/commit/0ce1540623ddbb95c76cb12217e05eccd7ff537a)) --- 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 cf9789067..8f7c1e505 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [0.44.0](https://github.com/juspay/hyperswitch-web/compare/v0.43.5...v0.44.0) (2024-04-19) + + +### Features + +* normal mandate changes ([#314](https://github.com/juspay/hyperswitch-web/issues/314)) ([0ce1540](https://github.com/juspay/hyperswitch-web/commit/0ce1540623ddbb95c76cb12217e05eccd7ff537a)) + ## [0.43.5](https://github.com/juspay/hyperswitch-web/compare/v0.43.4...v0.43.5) (2024-04-18) diff --git a/package-lock.json b/package-lock.json index 957ca9654..a7c4043f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.43.5", + "version": "0.44.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.43.5", + "version": "0.44.0", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index bfc4c1520..ca602a649 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.43.5", + "version": "0.44.0", "main": "index.js", "private": true, "dependencies": { From 7212181ca57e1d49eca3feda1c6ba7a5746cebeb Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Fri, 19 Apr 2024 22:53:47 +0530 Subject: [PATCH 3/4] fix: whitelist 127.0.0.1 for local dev (#316) --- src/orca-loader/Hyper.res | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index 47c3f108e..35569eeda 100644 --- a/src/orca-loader/Hyper.res +++ b/src/orca-loader/Hyper.res @@ -132,7 +132,10 @@ let make = (publishableKey, options: option, analyticsInfo: optionSentry.sentryLogger let isSecure = Window.protocol === "https:" - let isLocal = GlobalVars.sdkUrl->String.includes("localhost") + let isLocal = + ["localhost", "127.0.0.1"] + ->Array.find(url => Window.hostname->String.includes(url)) + ->Option.isSome if !isSecure && !isLocal { manageErrorWarning(HTTP_NOT_ALLOWED, ~dynamicStr=Window.href, ~logger, ()) Exn.raiseError("Insecure domain: " ++ Window.href) From 07bf0bbef1b74066e2f5672a6d5527c7abfb99f4 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 19 Apr 2024 17:25:46 +0000 Subject: [PATCH 4/4] chore(release): 0.44.1 [skip ci] ## [0.44.1](https://github.com/juspay/hyperswitch-web/compare/v0.44.0...v0.44.1) (2024-04-19) ### Bug Fixes * whitelist 127.0.0.1 for local dev ([#316](https://github.com/juspay/hyperswitch-web/issues/316)) ([7212181](https://github.com/juspay/hyperswitch-web/commit/7212181ca57e1d49eca3feda1c6ba7a5746cebeb)) --- 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 8f7c1e505..a966330c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.44.1](https://github.com/juspay/hyperswitch-web/compare/v0.44.0...v0.44.1) (2024-04-19) + + +### Bug Fixes + +* whitelist 127.0.0.1 for local dev ([#316](https://github.com/juspay/hyperswitch-web/issues/316)) ([7212181](https://github.com/juspay/hyperswitch-web/commit/7212181ca57e1d49eca3feda1c6ba7a5746cebeb)) + # [0.44.0](https://github.com/juspay/hyperswitch-web/compare/v0.43.5...v0.44.0) (2024-04-19) diff --git a/package-lock.json b/package-lock.json index a7c4043f5..56205b656 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.44.0", + "version": "0.44.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.44.0", + "version": "0.44.1", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index ca602a649..925db0c4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.44.0", + "version": "0.44.1", "main": "index.js", "private": true, "dependencies": {