Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sunny-hoops-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphcommerce/magento-payment-multisafepay': patch
---

Fixed a bug in MSPPaymentHandler where successful MultiSafepay payments were prevented from redirecting to the success page due to an incorrect condition in the payment handler.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export function MSPPaymentHandler(props: PaymentHandlerProps) {

const { justLocked, success, cart_id: cartId, locked, method, order_number } = lockStatus

const canProceed =
!justLocked && locked && cartId && method === code && !called && success !== '1'
const canProceed = !justLocked && locked && cartId && method === code && !called

// When the payment has failed we restore the current cart
const shouldRestore = canProceed && success !== '1'
Expand Down
Loading