Skip to content

If shopper updates payment method on a Stripe Billing subscription, it turns into a WooPayments subscription #10681

@dmvrtx

Description

@dmvrtx

Describe the bug

Whenever shopper goes to My Account > Subscriptions > Change payment and updates it, e.g. by providing a new card number, Stripe Billing subscription gets cancelled and a WooPayments subscription is created.

To Reproduce

  1. Activate "Enable Stripe Billing for future subscriptions" option in WooPayments settings. For it to be seen, the store should be in US and WooCommerce Subscription plugin should be active.
  2. Create a test subscription and purchase it.
  3. Check the subscription details in WooCommerce > Subscriptions. The subscription ID which starts with sub_ is an indication that it is a Stripe Billing subscription:

Image

  1. Visit the Stripe dashboard for the account. Subscriptions should be visible in the Subscriptions section:

Image

  1. Open My account > Subscriptions and change payment method for the subscription. E.g. update card expiry date.
  2. Reload the subscription order as a merchant. Notice that the subscription ID is gone and there is a Payment method: Cards instead.

Image

  1. Check the order notes, which will indicate that subscription was charged with WooPayments:
Image
  1. In the Stripe dashboard, subscription is now stated as "Cancelled":
Image

Tip

If Subscriptions section is empty, head to Developers > Events and look for an event which says that subscription was cancelled. From there, you can click on the subscription ID to load it.

Actual behavior

WooPayments sees that the new payment is a card and updates the subscription to be a WooPayments subscription.

Expected behavior

WooPayments should see that the new payment method is card, but also check the subscription type and update it appropriately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugThe issue is a confirmed bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions