This PR solves the problem of the grand_total amount not being correctly updated upon the shipping method change from the GooglePay popup modal. The reason behind this is that when the shopper selects a different shipping method, we are calling setTotalsInfo helper that doesn't update the quote. Therefore, this PR introduces a solution of calling the setShippingInformation helper to do the above mentioned before calling the setTotalsInfo.
Tested scenarios
Change the shipping method in GooglePay popup and make sure that the necessary db fields (quote->grand_total, quote_address->shipping_method, shipping_description, shipping_amount) are updated correctly and real-time.
Summary
This PR solves the problem of the
grand_total
amount not being correctly updated upon the shipping method change from the GooglePay popup modal. The reason behind this is that when the shopper selects a different shipping method, we are callingsetTotalsInfo
helper that doesn't update the quote. Therefore, this PR introduces a solution of calling thesetShippingInformation
helper to do the above mentioned before calling thesetTotalsInfo
.Tested scenarios
Change the shipping method in GooglePay popup and make sure that the necessary db fields (
quote
->grand_total
,quote_address
->shipping_method
,shipping_description
,shipping_amount
) are updated correctly and real-time.