mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add cart simulation adjustments
This commit is contained in:
parent
9db41ee34e
commit
799e06a7dd
1 changed files with 5 additions and 0 deletions
|
@ -229,6 +229,11 @@ class GooglepayButton {
|
|||
|
||||
const updateData = new UpdatePaymentData(this.buttonConfig.ajax.update_payment_data)
|
||||
const updatedData = await updateData.update(paymentData);
|
||||
const transactionInfo = await this.contextHandler.transactionInfo();
|
||||
|
||||
updatedData.country_code = transactionInfo.countryCode;
|
||||
updatedData.currency_code = transactionInfo.currencyCode;
|
||||
updatedData.total_str = transactionInfo.totalPrice;
|
||||
|
||||
// Handle unserviceable address.
|
||||
if(!updatedData.shipping_options || !updatedData.shipping_options.shippingOptions.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue