Skip to content

Commit

Permalink
Merge branch 'main' into mb-way-ui-break
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored May 31, 2024
2 parents f2a87eb + acb313d commit 45a5aef
Show file tree
Hide file tree
Showing 4 changed files with 12 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.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)


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.57.1",
"version": "0.57.2",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
8 changes: 2 additions & 6 deletions src/Payments/KlarnaSDK.res
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -65,7 +61,7 @@ let make = (~sessionObj: SessionsType.token) => {
},
)
}
}
}, [status])
useSubmitPaymentData(submitCallback)

React.useEffect(() => {
Expand Down

0 comments on commit 45a5aef

Please sign in to comment.