craftcms/commerce-stripe

Subscription plan with different gateways only remembers payment source on 1 gateway.

pdaleramirez opened this issue · 0 comments

Description

If a website have different gateway on different subscription plan, the user's payment source will only remember 1 gateway. When subscribing to a subscription plan that does not match the user's payment source will throw an unable to subscribe error.

Steps to reproduce

  1. Create 2 subscription plan with different gateway.
  2. Create a payment source for the logged in user.
  3. Go to the Plans page and subscribe to the plans. You will be able to subscribe to the 1 plan but on the other plan will throw unable to subscribe error.

Additional info

  • Craft CMS version: 4
  • Stripe for Craft Commerce version: 3
  • Craft Commerce: 4