Skip to content

Commit

Permalink
Revert "Abstracting the code, removing the console.logs"
Browse files Browse the repository at this point in the history
This reverts commit 495ec49.
  • Loading branch information
Can Demiralp committed Sep 26, 2024
1 parent a19a175 commit 0331e80
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions view/frontend/web/js/model/adyen-payment-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -108,7 +108,7 @@ define(
} else {
serviceUrl = urlBuilder.createUrl(
'/adyen/guest-carts/:cartId/payments-details', {
cartId: quoteId ?? quote.getQuoteId()
cartId: quote.getQuoteId(),
}
);
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0331e80

Please sign in to comment.