From d48c5c26b2eb96ceeaa75c348d73c3f6ab480cc4 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Thu, 30 May 2024 19:08:58 +0530 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20allow=20customer=20to=20pay=20with?= =?UTF-8?q?=20different=20payment=20method=20on=20cancel=20of=E2=80=A6=20(?= =?UTF-8?q?#409)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Arush Co-authored-by: Pritish Budhiraja --- src/Payments/KlarnaSDK.res | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Payments/KlarnaSDK.res b/src/Payments/KlarnaSDK.res index 86c4c0384..2acaf11dd 100644 --- a/src/Payments/KlarnaSDK.res +++ b/src/Payments/KlarnaSDK.res @@ -32,13 +32,9 @@ let make = (~sessionObj: SessionsType.token) => { let handleCloseLoader = () => { Utils.handlePostMessage([("fullscreen", false->JSON.Encode.bool)]) - Utils.postFailedSubmitResponse( - ~errortype="confirm_payment_failed", - ~message="An unknown error has occurred", - ) } - let submitCallback = (ev: Window.event) => { + let submitCallback = React.useCallback((ev: Window.event) => { let json = ev.data->JSON.parseExn let confirm = json->Utils.getDictFromJson->ConfirmType.itemToObjMapper @@ -65,7 +61,7 @@ let make = (~sessionObj: SessionsType.token) => { }, ) } - } + }, [status]) useSubmitPaymentData(submitCallback) React.useEffect(() => { From acb313d8dfdb8cb082e5e031bb974fe659985fa2 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 30 May 2024 13:42:46 +0000 Subject: [PATCH 2/2] chore(release): 0.57.2 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [0.57.2](https://github.com/juspay/hyperswitch-web/compare/v0.57.1...v0.57.2) (2024-05-30) ### Bug Fixes * allow customer to pay with different payment method on cancel of… ([#409](https://github.com/juspay/hyperswitch-web/issues/409)) ([d48c5c2](https://github.com/juspay/hyperswitch-web/commit/d48c5c26b2eb96ceeaa75c348d73c3f6ab480cc4)) --- 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 37d2c537a..977989b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.57.2](https://github.com/juspay/hyperswitch-web/compare/v0.57.1...v0.57.2) (2024-05-30) + + +### Bug Fixes + +* allow customer to pay with different payment method on cancel of… ([#409](https://github.com/juspay/hyperswitch-web/issues/409)) ([d48c5c2](https://github.com/juspay/hyperswitch-web/commit/d48c5c26b2eb96ceeaa75c348d73c3f6ab480cc4)) + ## [0.57.1](https://github.com/juspay/hyperswitch-web/compare/v0.57.0...v0.57.1) (2024-05-30) diff --git a/package-lock.json b/package-lock.json index e6e0d019a..aaaad6b6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.57.1", + "version": "0.57.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.57.1", + "version": "0.57.2", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index 12fb0b60d..94cddb364 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.57.1", + "version": "0.57.2", "main": "index.js", "private": true, "dependencies": {