From 6750ad014677a173de2c9874a9771f9bdf149557 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:30:37 +0530 Subject: [PATCH 1/3] fix: cdn confirm endpoint (#340) --- src/Utilities/PaymentHelpers.res | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Utilities/PaymentHelpers.res b/src/Utilities/PaymentHelpers.res index 884017dfe..73bf1b756 100644 --- a/src/Utilities/PaymentHelpers.res +++ b/src/Utilities/PaymentHelpers.res @@ -434,6 +434,7 @@ let rec intentCall = ( String.split(clientSecret, "_secret_")->Array.get(0)->Option.getOr("") let endpoint = ApiEndpoint.getApiEndPoint( ~publishableKey=confirmParam.publishableKey, + ~isConfirmCall=isConfirm, (), ) let retrieveUri = `${endpoint}/payments/${paymentIntentID}?client_secret=${clientSecret}` @@ -777,7 +778,11 @@ let rec intentCall = ( } else { let paymentIntentID = String.split(clientSecret, "_secret_")->Array.get(0)->Option.getOr("") - let endpoint = ApiEndpoint.getApiEndPoint(~publishableKey=confirmParam.publishableKey, ()) + let endpoint = ApiEndpoint.getApiEndPoint( + ~publishableKey=confirmParam.publishableKey, + ~isConfirmCall=isConfirm, + (), + ) let retrieveUri = `${endpoint}/payments/${paymentIntentID}?client_secret=${clientSecret}` intentCall( ~fetchApi, From e241449ddc01c1c187c5672bd7cad0f6003f3e96 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 30 Apr 2024 10:02:26 +0000 Subject: [PATCH 2/3] chore(release): 0.46.4 [skip ci] ## [0.46.4](https://github.com/juspay/hyperswitch-web/compare/v0.46.3...v0.46.4) (2024-04-30) ### Bug Fixes * cdn confirm endpoint ([#340](https://github.com/juspay/hyperswitch-web/issues/340)) ([6750ad0](https://github.com/juspay/hyperswitch-web/commit/6750ad014677a173de2c9874a9771f9bdf149557)) --- 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 65ca35da7..d1effbfa4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.46.4](https://github.com/juspay/hyperswitch-web/compare/v0.46.3...v0.46.4) (2024-04-30) + + +### Bug Fixes + +* cdn confirm endpoint ([#340](https://github.com/juspay/hyperswitch-web/issues/340)) ([6750ad0](https://github.com/juspay/hyperswitch-web/commit/6750ad014677a173de2c9874a9771f9bdf149557)) + ## [0.46.3](https://github.com/juspay/hyperswitch-web/compare/v0.46.2...v0.46.3) (2024-04-30) diff --git a/package-lock.json b/package-lock.json index ec7dd7fe6..0fd55bc75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.46.3", + "version": "0.46.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.46.3", + "version": "0.46.4", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index 79eacae7f..5c123c10e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.46.3", + "version": "0.46.4", "main": "index.js", "private": true, "dependencies": { From 664fd07e227f49598f8ba83d1894abce0648dec6 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:13:55 +0530 Subject: [PATCH 3/3] fix: cdn confirm endpoint (#341) --- src/LoaderController.res | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/LoaderController.res b/src/LoaderController.res index e0b5a9aba..977ec3cdb 100644 --- a/src/LoaderController.res +++ b/src/LoaderController.res @@ -233,11 +233,6 @@ let make = (~children, ~paymentMode, ~setIntegrateErrorError, ~logger, ~initTime let publishableKey = dict->getString("publishableKey", "") logger.setMerchantId(publishableKey) } - - if dict->getDictIsSome("endpoint") { - let endpoint = dict->getString("endpoint", "") - ApiEndpoint.setApiEndPoint(endpoint) - } if dict->getDictIsSome("analyticsMetadata") { let metadata = dict->getJsonObjectFromDict("analyticsMetadata") logger.setMetadata(metadata)