woocommerce / woocommerce-gateway-stripe

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

[Split PE] Returning to the store after Bancontact, iDEAL, or Sofort doesn't save the payment method #2928

Closed james-allan closed 7 months ago

james-allan commented 7 months ago

Describe the bug

When you opt to save a payment method and you use a payment method like Bancontact, iDEAL or Sofort, when you return to the store after authenticating the payment, the payment method isn't saved.

To Reproduce Steps to reproduce the behavior:

  1. Check out add/deferred-intent
  2. Select EUR as the store currency
  3. Under the Stripe settings, enable UPE and enable Bancontact, iDEAL, Sofort
  4. As a shopper, go to the checkout page
  5. Select "Use a new payment method"
  6. Select Bancontact, iDEAL or Sofort
  7. Check the box to save the payment method
  8. Place the order
  9. Authorize the payment
  10. When you are returned to the store, open the database wp_woocommerce_payment_tokens table and notice that no stripe_ token was created for that saved payment method.

Expected behavior The token should be saved on returning to the store as it has now been authorized and converted to a saveable token (reusable SEPA in this case).

mattallan commented 7 months ago

Closed by #2929