woocommerce / woocommerce-gateway-stripe

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

The same Credit Card can be saved multiple times as distinct payment methods #2691

Open thenbrent opened 1 year ago

thenbrent commented 1 year ago

Describe the bug When checking out, the same credit card number + expiration date combination can be input and saved as separate payment methods despite being the same card/payment instrument.

Tested and reproduced on shortcode checkout with UPE disabled.

To Reproduce Steps to reproduce the behavior:

  1. Go to a store
  2. Add products to the cart
  3. Go to checkout
  4. Input a set of card details
  5. Click "Save payment information to my account for future purchases. "
  6. Click "Place order"
  7. Repeat steps 1-6 above with same card details

Expected behavior Use the same payment method ID to refer to the same payment instrument.

Screenshots

Screenshot 2023-08-30 at 14 59 46

Additional context

Possibly related to similar issue scoped to Google Pay only: https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2327

github-actions[bot] commented 1 month ago

Hi, This issue has gone 150 days (5 months) without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest version, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

gvenk commented 1 month ago

I discovered that some of our users have the same problem. I didn't have time to investigate it, but I will try to do this soon.