From b74c81656c92e6e917872eccb490944c195b1d47 Mon Sep 17 00:00:00 2001 From: ArushKapoorJuspay <121166031+ArushKapoorJuspay@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:35:01 +0530 Subject: [PATCH 1/4] fix: passing initiativeContext to TrustPay ApplePay (#519) --- src/orca-loader/Elements.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res index bf640d4df..c80e9cac9 100644 --- a/src/orca-loader/Elements.res +++ b/src/orca-loader/Elements.res @@ -6,7 +6,7 @@ open EventListenerManager open ApplePayTypes type trustPayFunctions = { - finishApplePaymentV2: (string, paymentRequestData) => Promise.t, + finishApplePaymentV2: (string, paymentRequestData, string) => Promise.t, executeGooglePayment: (string, GooglePayType.paymentDataRequest) => Promise.t, } @new external trustPayApi: JSON.t => trustPayFunctions = "TrustPayApi" @@ -565,7 +565,7 @@ let make = ( try { let trustpay = trustPayApi(secrets) - trustpay.finishApplePaymentV2(payment, paymentRequest) + trustpay.finishApplePaymentV2(payment, paymentRequest, Window.Location.hostname) ->then(res => { let value = "Payment Data Filled: New Payment Method" logger.setLogInfo( From e3049c4eca41080cb62eaf8e63c01c0b64f2fde6 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 24 Jul 2024 17:06:26 +0000 Subject: [PATCH 2/4] chore(release): 0.77.3 [skip ci] ## [0.77.3](https://github.com/juspay/hyperswitch-web/compare/v0.77.2...v0.77.3) (2024-07-24) ### Bug Fixes * passing initiativeContext to TrustPay ApplePay ([#519](https://github.com/juspay/hyperswitch-web/issues/519)) ([b74c816](https://github.com/juspay/hyperswitch-web/commit/b74c81656c92e6e917872eccb490944c195b1d47)) --- 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 8bdb4b007..5f0690db4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.77.3](https://github.com/juspay/hyperswitch-web/compare/v0.77.2...v0.77.3) (2024-07-24) + + +### Bug Fixes + +* passing initiativeContext to TrustPay ApplePay ([#519](https://github.com/juspay/hyperswitch-web/issues/519)) ([b74c816](https://github.com/juspay/hyperswitch-web/commit/b74c81656c92e6e917872eccb490944c195b1d47)) + ## [0.77.2](https://github.com/juspay/hyperswitch-web/compare/v0.77.1...v0.77.2) (2024-07-24) diff --git a/package-lock.json b/package-lock.json index bcf26ba32..7fb35885b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.77.2", + "version": "0.77.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.77.2", + "version": "0.77.3", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index bb5fd335b..ac4d3c8e2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.77.2", + "version": "0.77.3", "main": "index.js", "private": true, "dependencies": { From 1ceefe15d7943ac02b678b116c4058b4830f5b52 Mon Sep 17 00:00:00 2001 From: Vrishab Srivatsa <136090360+vsrivatsa-juspay@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:03:01 +0530 Subject: [PATCH 3/4] revert: passing initiativeContext to TrustPay ApplePay (#522) --- src/orca-loader/Elements.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/orca-loader/Elements.res b/src/orca-loader/Elements.res index c80e9cac9..bf640d4df 100644 --- a/src/orca-loader/Elements.res +++ b/src/orca-loader/Elements.res @@ -6,7 +6,7 @@ open EventListenerManager open ApplePayTypes type trustPayFunctions = { - finishApplePaymentV2: (string, paymentRequestData, string) => Promise.t, + finishApplePaymentV2: (string, paymentRequestData) => Promise.t, executeGooglePayment: (string, GooglePayType.paymentDataRequest) => Promise.t, } @new external trustPayApi: JSON.t => trustPayFunctions = "TrustPayApi" @@ -565,7 +565,7 @@ let make = ( try { let trustpay = trustPayApi(secrets) - trustpay.finishApplePaymentV2(payment, paymentRequest, Window.Location.hostname) + trustpay.finishApplePaymentV2(payment, paymentRequest) ->then(res => { let value = "Payment Data Filled: New Payment Method" logger.setLogInfo( From f5dc3b42f57490741f82276ad84c1925a76bc1bf Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 25 Jul 2024 09:34:25 +0000 Subject: [PATCH 4/4] chore(release): 0.77.4 [skip ci] ## [0.77.4](https://github.com/juspay/hyperswitch-web/compare/v0.77.3...v0.77.4) (2024-07-25) ### Reverts * passing initiativeContext to TrustPay ApplePay ([#522](https://github.com/juspay/hyperswitch-web/issues/522)) ([1ceefe1](https://github.com/juspay/hyperswitch-web/commit/1ceefe15d7943ac02b678b116c4058b4830f5b52)) --- 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 5f0690db4..d6164a09d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [0.77.4](https://github.com/juspay/hyperswitch-web/compare/v0.77.3...v0.77.4) (2024-07-25) + + +### Reverts + +* passing initiativeContext to TrustPay ApplePay ([#522](https://github.com/juspay/hyperswitch-web/issues/522)) ([1ceefe1](https://github.com/juspay/hyperswitch-web/commit/1ceefe15d7943ac02b678b116c4058b4830f5b52)) + ## [0.77.3](https://github.com/juspay/hyperswitch-web/compare/v0.77.2...v0.77.3) (2024-07-24) diff --git a/package-lock.json b/package-lock.json index 7fb35885b..074f5db01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.77.3", + "version": "0.77.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.77.3", + "version": "0.77.4", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-cloudfront": "^3.414.0", diff --git a/package.json b/package.json index ac4d3c8e2..c688489a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.77.3", + "version": "0.77.4", "main": "index.js", "private": true, "dependencies": {