Invalid Recurring Shipping Method with Apple / Google Pay When Paying for Multiple Subscriptions #8029
Labels
category: core
WC Payments core related issues, where it’s obvious.
component: wcpay subscriptions
Issues related to Stripe Billing Subscriptions
focus: subscriptions
type: bug
The issue is a confirmed bug.
Originally reported in 4606-gh-woocommerce/woocommerce-subscriptions
Describe the bug
When attempting to purchase multiple subscriptions of varying periods with Apple/Google Pay, you will get an "Invalid recurring shipping method." error:
After some initial investigation I believe this issue is caused by WooPayments wiping the recurring shipping methods from the
chosen_shipping_methods
session when it callsWC()->shipping->reset_shipping()
, which is called when calculating the shipping options to display in the Apple/Google Pay pop-ups.Before we wipe/clear the chosen shipping methods, we store them in a variable here so I think to fix this we'll need to restore any other chosen shipping methods that were wiped.
Additional details
Example of shipping_method data from payment button $_POST:
Example from a default checkout process:
To Reproduce
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: