Automattic / woocommerce-payments

Accept payments via credit card. Manage transactions within WordPress.
https://wordpress.org/plugins/woocommerce-payments/
Other
174 stars 69 forks source link

Compatibility: Advanced Shipping Packages – shipping cost not updated in payment request modal #5657

Open jrick1229 opened 1 year ago

jrick1229 commented 1 year ago

Describe the bug

Same issue as seen in the Stripe repo: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2426

When using Advanced Shipping Packages, the shipping cost is not updated when changing within the modal: https://d.pr/i/0PFp9S

To Reproduce

  1. Setup any sort of advanced shipping package
  2. Make a free and paid shipping option available
  3. Navigate to the cart and click to pay with Apple or Google Pay
  4. Within the modal, change the shipping option (change will not be reflected in the total cost)

Actual behavior

Shipping cost remains, even when switching to free.

Screenshots

With Advanced Shipping Packages active: https://d.pr/i/0PFp9S With Advanced Shipping Packages deactivated: https://d.pr/i/HVSK2S

Expected behavior

Shipping cost should change when adjusted within the modal.

Additional context

Example ticket: 5959477-zen

jrick1229 commented 1 year ago

Noting that I've replicate this in Google Pay, Apple Pay, and Link Pay.

jrick1229 commented 1 year ago

Also noting a workaround: https://woocommerce.com/document/stripe/#advanced-shipping-packages

htdat commented 1 year ago

Just a note there that this seems related to https://github.com/Automattic/woocommerce-payments/issues/3417 and pca54o-29Y-p2

jessy-p commented 9 months ago

This issue impacts Additional Payment Methods (including Apple Pay / Google Pay), so assigning to Heisenberg (based on team responsibilities Pc2DNy-3z-p2) @FangedParakeet. Assigning as part of Gamma Triage process PcreKM-yM-p2.

Tagging as part of re-evaluating older issues in the backlog, please have a look and close if no longer relevant.

frosso commented 4 months ago

I tested this with the tokenized cart implementation for PRBs, and the pricing seems to be correctly updated if there is one package. Unfortunately, GooglePay/ApplePay still don't support multiple packages in a single order, so the compatibility problem with the plugin persists until they'll implement a multi-shipping solution.

Screenshot 2024-06-21 at 6 07 09 PM

https://github.com/Automattic/woocommerce-payments/assets/273592/9232751f-663f-41d4-994b-4dd12dd20655

CC @FangedParakeet