Description
Internal ticket: 8137103-zen
Describe the bug
In WooCommerce Subscriptions we have a setting that allows customers to purchase $0 subscription products (i.e. subscriptions that have a trial period) without entering a payment method on the checkout:
After the free trial ends, when the customer pays for the first renewal order with Amazon Pay, the new payment method is not set on the subscription resulting in the subscription remaining as requiring manual renewal, instead of automatically renewing with Amazon Pay.
Here's a screen recording highlighting the issue:
Screen.Capture.on.2024-05-13.at.15-07-18.mp4
To Reproduce
Steps to reproduce the behavior:
- Enable the $0 checkout setting in WooCommerce > Settings >Subscriptions
- Create a subscription product with a 7-day free trial
- Purchase the subscription with no payment method.
- You will see the trial and next payment date. The subscription will be in "manual payment" mode which is expected.
- Manually trigger the subscription renewal using the "Process renewal" subscription action:
- Now pay for the new pending renewal order from My Account page and complete the payment with Amazon Pay
- Check the subscription on the My Account page and notice that it's still saying it is manual renewal.
Expected behavior
The subscription will renew automatically with Amazon Payments and not require manual renewal.
Isolating the problem (mark completed items with an [x]):
- I have deactivated other plugins and confirmed this bug occurs when only the extension is active.
- I can reproduce this bug consistently using the steps above.
WordPress Environment