-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Describe the bug
When adding a new payment method via My Account > Payment Methods using the WooCommerce Stripe Gateway (v9.2.0), the newly added method does not appear in the list. Only the first saved payment method is displayed, even though the new method is successfully saved in Stripe.
Additionally, the newly added payment method is not set as the default, even though it is the most recent method saved. This leads to confusion for customers, as they expect the latest payment method to be set as the default.
To Reproduce
Steps to reproduce the behavior:
- Navigate to My Account > Payment Methods in WooCommerce.
- Click on Add Payment Method and add a new credit card.
- Complete the process and return to My Account > Payment Methods.
- Notice that the newly added payment method does not appear in the list.
- The previously saved method remains as the only visible payment method.
- The new method is not set as the default, and the old method is still marked as default.
- Check the Stripe Dashboard and see that the new method is saved but not shown or set as default in WooCommerce.
Expected behavior
When a new payment method is added via My Account > Payment Methods, it should immediately appear in the list.
The newly added method should be automatically set as the default payment method if it's checked as default.
All saved payment methods should be listed, allowing users to manage, select, or delete any of them.
Environment (please complete the following information):
- WordPress Version : 6.7.2
- WooCommerce Version : 9.6.2
- Stripe Plugin Version : 9.2.0
- Browser [e.g. chrome, safari] and Version : All