Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juspay/hyperswitch-web
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrishab Srivatsa committed Apr 30, 2024
2 parents 3b45aaf + 664fd07 commit acfe2d7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
"version": "0.46.3",
"version": "0.46.4",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
5 changes: 0 additions & 5 deletions src/LoaderController.res
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 6 additions & 1 deletion src/Utilities/PaymentHelpers.res
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit acfe2d7

Please sign in to comment.