Skip to content

Commit

Permalink
Merge branch 'develop' into ECP-8914
Browse files Browse the repository at this point in the history
  • Loading branch information
hossam-adyen authored Jan 25, 2024
2 parents 113bdc4 + 2b35d60 commit 520455a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/frontend/web/js/model/adyen-payment-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ define(
this.connectedTerminals(connectedTerminals);
},

getOrderPaymentStatus: function(orderId) {
getOrderPaymentStatus: function(orderId, quoteId = null) {
let serviceUrl;

if (customer.isLoggedIn()) {
serviceUrl = urlBuilder.createUrl('/adyen/orders/carts/mine/payment-status', {});
} else {
serviceUrl = urlBuilder.createUrl('/adyen/orders/guest-carts/:cartId/payment-status', {
cartId: quote.getQuoteId()
cartId: quoteId ?? quote.getQuoteId()
});
}

Expand Down

0 comments on commit 520455a

Please sign in to comment.