woocommerce / woocommerce-gateway-stripe

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

APM UPE tokens get duplicated in the database when UPE is disabled #2953

Open a-danae opened 9 months ago

a-danae commented 9 months ago

Describe the bug

This may not be a bug. Opening this issue to document the behavior and to discuss it eventually.

When APMs are saved under UPE, and you disable UPE, they get duplicated in the database when visiting the checkout page.

This is happening before 8.0.0. It's not related to Split PE.

To Reproduce Steps to reproduce the behavior:

  1. Set the store currency to Euro
  2. Enable UPE and SEPA
  3. As a shopper, save a SEPA payment method
  4. Check out the wp_woocommerce_payment_tokens table in the database
  5. Notice there's a single entry for the newly added token
  6. Disable UPE
  7. Visit the checkout page
  8. Check out the wp_woocommerce_payment_tokens table in the database
  9. Notice now there are two tokens for the same payment method image

Expected behavior

To be discussed.

The tokens are being duplicated using the non-UPE payment gateway ID. This way they get displayed under the correct gateway on the checkout page.

I expect there to be a single token per payment method, but this behavior may be harmless.

github-actions[bot] commented 2 months 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.

github-actions[bot] commented 1 month ago

This issue has gone 180 days (6 months) without any activity.