From 4043e6b303a99d8dece9a9084a19f75c8d29dc67 Mon Sep 17 00:00:00 2001 From: khushboos Date: Wed, 15 Jan 2025 16:11:59 +0100 Subject: [PATCH 1/2] Removing leftover code --- .../web/js/view/payment/method-renderer/adyen-pm-method.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js b/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js index c3918236f..2d8717ae8 100755 --- a/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js +++ b/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js @@ -143,7 +143,7 @@ define( this.renderCheckoutComponent(); } }, - + handleOnError: function (error, component) { this.handleOnFailure(error, component); }, @@ -263,8 +263,6 @@ define( request = state.data; } - request.cancelled = true; - adyenPaymentService.paymentDetails(request, self.orderId).done(function() { $.mage.redirect( window.checkoutConfig.payment.adyen.successPage From 37143ceab9729a2905ad6a910027e9e82ee0d95d Mon Sep 17 00:00:00 2001 From: Khushboo Date: Wed, 15 Jan 2025 16:33:30 +0100 Subject: [PATCH 2/2] Update adyen-pm-method.js --- .../web/js/view/payment/method-renderer/adyen-pm-method.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js b/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js index 2d8717ae8..565c11928 100755 --- a/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js +++ b/view/frontend/web/js/view/payment/method-renderer/adyen-pm-method.js @@ -263,6 +263,8 @@ define( request = state.data; } + request.cancelled = true; + adyenPaymentService.paymentDetails(request, self.orderId).done(function() { $.mage.redirect( window.checkoutConfig.payment.adyen.successPage