woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
229 stars 200 forks source link

[Split PE] Saving an ideal, bancontact or SEPA card doesn't save the card when purchasing a regular product on the checkout. #2916

Closed mattallan closed 6 months ago

mattallan commented 6 months ago

Describe the bug

On the latest add/deferred-intent development branch, purchasing a regular WC product with any APM that is reusable (iDeal, Bancontact, SEPA) and selecting the "save card" checkbox on the checkout, doesn't save the card for future payments:

image

If you add a subscription product to your cart and purchase with any APM, the token is saved.

To Reproduce Steps to reproduce the behavior:

  1. Checkout add/deferred-intent branch and make sure you have UPE enabled along with Bancontact (set your store currency to EUR if not already)
  2. Add a regular WC product to your cart and on checkout, select bancontact
  3. Check the "save information for future purchases" checkbox and complete the checkout
  4. Add a subscription product to your cart this and go to the checkout
  5. Notice how the card previously used hasn't been saved :x:
  6. Complete purchasing the subscription with bancontact.
  7. Once on the order thank-you page, go back and add a product to your cart and once on the checkout, confirm the bancontact payment token was saved when purchasing a subscription only.

Expected behavior Selecting "Save payment information to my account for future purchases." with any product in the cart should save the payment token. Not just subscription products.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

mattallan commented 6 months ago

Closed by https://github.com/woocommerce/woocommerce-gateway-stripe/pull/2917