-
Notifications
You must be signed in to change notification settings - Fork 222
Description
Describe the bug
Prior to version 9, there was a way to cancel pending orders by using the payment-details route : 35ebd16#diff-12bbc66d935c4130a664605599d72213df5a15629e4831bab735b1b6f2b4a295L99-L111
The cancelledparameter is still used in the javascription plugin, but doesn't seem to work anymore :
adyen-magento2/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js
Line 142 in 4d4406a
| request.cancelled = true; |
Is there a new route to do the same thing ?
Thank you very much.
To Reproduce
When I call the route payment-details : adyen/guest-carts/${cart-token}/payments-details
with the payload :
{ payload: "{"cancelled":true}", orderId: ${orderId} }
The plugin gives me the following error :
Internal Error. Details are available in Magento log file.
Warning: Undefined array key "details" in /app/do357cqtkw3dk_stg/vendor/adyen/module-payment/Helper/PaymentsDetails.php on line 114
Expected behavior
The order should be cancelled.
Magento version
2.4.5
Plugin version
9.8.0