Skip to content

Commit 72ed978

Browse files
author
Cristian Partica
committed
MAGETWO-39280: Set Total amount in checkout flow order
- changed the order of setTotals before we set service.setSelectedPaymentData and service.setSelectedPaymentInfo so subscribed observers would have the accurate totals
1 parent 87f0ada commit 72ed978

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/select-payment-method.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ define(
8080
});
8181
if (proceed) {
8282
quote.setPaymentMethod(methodData.method);
83+
//set the totals before setting PaymentData
84+
quote.setTotals(response);
8385
service.setSelectedPaymentData(methodData);
8486
service.setSelectedPaymentInfo(methodInfo);
85-
quote.setTotals(response);
8687
navigator.setCurrent('paymentMethod').goNext();
8788
}
8889
}

0 commit comments

Comments
 (0)