From ac8c98a5f3a823f346f51605d44f9f6acd5a2264 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 19 Nov 2024 13:05:12 +0000 Subject: [PATCH 1/5] chore(release): 0.102.6 [skip ci] ## [0.102.6](https://github.com/juspay/hyperswitch-web/compare/v0.102.5...v0.102.6) (2024-11-19) --- 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 6fcd00ed..0cb1f1e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.102.6](https://github.com/juspay/hyperswitch-web/compare/v0.102.5...v0.102.6) (2024-11-19) + ## [0.102.5](https://github.com/juspay/hyperswitch-web/compare/v0.102.4...v0.102.5) (2024-11-19) ## [0.102.4](https://github.com/juspay/hyperswitch-web/compare/v0.102.3...v0.102.4) (2024-11-14) diff --git a/package-lock.json b/package-lock.json index 0e27eb88..06b7a8a1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.102.5", + "version": "0.102.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.102.5", + "version": "0.102.6", "hasInstallScript": true, "dependencies": { "@glennsl/rescript-fetch": "^0.2.0", diff --git a/package.json b/package.json index 3d92ca51..c1a1551c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.102.5", + "version": "0.102.6", "main": "index.js", "private": true, "dependencies": { From 530b202117c8afb2aba8d8cc5b74ae6817956ec7 Mon Sep 17 00:00:00 2001 From: sakksham7 <130480324+sakksham7@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:35:47 +0530 Subject: [PATCH 2/5] chore: added suport for adding email address in paze (#801) --- src/Payments/PazeTypes.res | 3 ++- src/Payments/PazeWallet.res | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Payments/PazeTypes.res b/src/Payments/PazeTypes.res index 1452ee62..133f1748 100644 --- a/src/Payments/PazeTypes.res +++ b/src/Payments/PazeTypes.res @@ -36,8 +36,9 @@ type complete = { transactionValue: transactionValue, } +type canCheckoutReturnType = {consumerPresent: bool} type digitalWalletSdk = { - canCheckout: canCheckout => promise, + canCheckout: canCheckout => promise, checkout: checkout => promise, complete: complete => promise, initialize: initialize => promise, diff --git a/src/Payments/PazeWallet.res b/src/Payments/PazeWallet.res index 9008954d..a4d421f9 100644 --- a/src/Payments/PazeWallet.res +++ b/src/Payments/PazeWallet.res @@ -41,12 +41,12 @@ let make = () => { Console.log2("PAZE --- init completed", val) - let consumerPresent = await digitalWalletSdk.canCheckout({ + let canCheckout = await digitalWalletSdk.canCheckout({ emailAddress: emailAddress, }) Console.log("PAZE --- canCheckout completed") - Console.log2("PAZE --- consumerPresent: ", consumerPresent) + Console.log2("PAZE --- canCheckout: ", canCheckout.consumerPresent) let transactionValue = { transactionAmount, @@ -61,7 +61,7 @@ let make = () => { let checkoutResponse = await digitalWalletSdk.checkout({ acceptedPaymentCardNetworks: ["VISA", "MASTERCARD"], - emailAddress, + emailAddress: canCheckout.consumerPresent ? emailAddress : "", sessionId, actionCode: "START_FLOW", transactionValue, From 049396bb262732e56e923e321ea96e0d31a5f4f7 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 19 Nov 2024 15:08:56 +0000 Subject: [PATCH 3/5] chore(release): 0.102.7 [skip ci] ## [0.102.7](https://github.com/juspay/hyperswitch-web/compare/v0.102.6...v0.102.7) (2024-11-19) --- 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 0cb1f1e6..d514bc4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.102.7](https://github.com/juspay/hyperswitch-web/compare/v0.102.6...v0.102.7) (2024-11-19) + ## [0.102.6](https://github.com/juspay/hyperswitch-web/compare/v0.102.5...v0.102.6) (2024-11-19) ## [0.102.5](https://github.com/juspay/hyperswitch-web/compare/v0.102.4...v0.102.5) (2024-11-19) diff --git a/package-lock.json b/package-lock.json index 06b7a8a1..b60c67d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.102.6", + "version": "0.102.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.102.6", + "version": "0.102.7", "hasInstallScript": true, "dependencies": { "@glennsl/rescript-fetch": "^0.2.0", diff --git a/package.json b/package.json index c1a1551c..45716a72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.102.6", + "version": "0.102.7", "main": "index.js", "private": true, "dependencies": { From 5732a9d93c1ac377aae79f41b881f2064f42e098 Mon Sep 17 00:00:00 2001 From: sakksham7 <130480324+sakksham7@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:40:17 +0530 Subject: [PATCH 4/5] chore: sent a post message for expiry date (#802) Co-authored-by: Pritish Budhiraja --- src/Payments/CardPayment.res | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Payments/CardPayment.res b/src/Payments/CardPayment.res index 2758da9e..7af2f4b2 100644 --- a/src/Payments/CardPayment.res +++ b/src/Payments/CardPayment.res @@ -154,6 +154,9 @@ let make = ( defaultCardBody } if confirm.doSubmit { + // * Sending card expiry to handle cases where the card expires before the use date. + messageParentWindow([("expiryDate", cardExpiry->JSON.Encode.string)]) + let isCardDetailsValid = isCVCValid->Option.getOr(false) && isCardValid->Option.getOr(false) && From bcd781d67db85c4d32518cfc9aaa07fdb1eec310 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 19 Nov 2024 15:12:53 +0000 Subject: [PATCH 5/5] chore(release): 0.102.8 [skip ci] ## [0.102.8](https://github.com/juspay/hyperswitch-web/compare/v0.102.7...v0.102.8) (2024-11-19) --- 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 d514bc4d..4ecd3868 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## [0.102.8](https://github.com/juspay/hyperswitch-web/compare/v0.102.7...v0.102.8) (2024-11-19) + ## [0.102.7](https://github.com/juspay/hyperswitch-web/compare/v0.102.6...v0.102.7) (2024-11-19) ## [0.102.6](https://github.com/juspay/hyperswitch-web/compare/v0.102.5...v0.102.6) (2024-11-19) diff --git a/package-lock.json b/package-lock.json index b60c67d8..1608562b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "orca-payment-page", - "version": "0.102.7", + "version": "0.102.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "orca-payment-page", - "version": "0.102.7", + "version": "0.102.8", "hasInstallScript": true, "dependencies": { "@glennsl/rescript-fetch": "^0.2.0", diff --git a/package.json b/package.json index 45716a72..17c25785 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orca-payment-page", - "version": "0.102.7", + "version": "0.102.8", "main": "index.js", "private": true, "dependencies": {