From 0331e8078c7b9200795e989dabe75f8806afe71a Mon Sep 17 00:00:00 2001 From: Can Demiralp Date: Thu, 26 Sep 2024 13:07:24 +0200 Subject: [PATCH] Revert "Abstracting the code, removing the console.logs" This reverts commit 495ec493dbc4c707c444f635666407f355e24374. --- view/frontend/web/js/model/adyen-payment-service.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/view/frontend/web/js/model/adyen-payment-service.js b/view/frontend/web/js/model/adyen-payment-service.js index cbe1baabd..0a11c0c52 100644 --- a/view/frontend/web/js/model/adyen-payment-service.js +++ b/view/frontend/web/js/model/adyen-payment-service.js @@ -93,7 +93,7 @@ define( ); }, - paymentDetails: function(data, orderId, isMultishipping = false, quoteId = null) { + paymentDetails: function(data, orderId, isMultishipping = false) { let serviceUrl; let payload = { 'payload': JSON.stringify(data), @@ -108,7 +108,7 @@ define( } else { serviceUrl = urlBuilder.createUrl( '/adyen/guest-carts/:cartId/payments-details', { - cartId: quoteId ?? quote.getQuoteId() + cartId: quote.getQuoteId(), } ); } @@ -177,12 +177,12 @@ define( saveStateData: function (stateData) { let urlPath = '/adyen/guest-carts/:cartId/state-data'; let urlParams = {cartId: quote.getQuoteId()}; - + if (customer.isLoggedIn()) { urlPath = '/adyen/carts/mine/state-data'; urlParams = {}; - } - + } + let serviceUrl = urlBuilder.createUrl(urlPath, urlParams); let request = { stateData: JSON.stringify(stateData)