adyen-magento2
adyen-magento2 copied to clipboard
[ECP-9498] Implement `onError` callback for the Paypal.
Description
While abandoning the payment from Paypal, the order is not cancelled, it remains in Pending Payment state until we have the OFFER_CLOSED processed, blocking the inventory. This PR aims to implement onError
event being triggered for Paypal cancelation events.
Tested scenarios
- Canceling or abondoning Paypal orders without completing them
- E2E automated test case has been implemented on #135
Fixes #2748