Skip to content

Newly added payment methods do not appear and are not set as default on My Account > Payment Methods page #3928

@lchantemesse

Description

@lchantemesse

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:

  1. Navigate to My Account > Payment Methods in WooCommerce.
  2. Click on Add Payment Method and add a new credit card.
  3. Complete the process and return to My Account > Payment Methods.
  4. Notice that the newly added payment method does not appear in the list.
  5. The previously saved method remains as the only visible payment method.
  6. The new method is not set as the default, and the old method is still marked as default.
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions