You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the local tokens and the payment methods in Stripe are out of sync, they don't get synced by visiting the Block checkout.
Bit of context:
When retrieving the tokens for a user, we check them with the payment methods saved in Stripe. The payment methods in Stripe are our source of truth. Local payment methods will get created or deleted according to those. This is handled by WC_Stripe_Payment_Tokens::woocommerce_get_customer_upe_payment_tokens().
To Reproduce
Deleting local tokens:
Check out add/deferred-intent
Under the Stripe extension settings, enable UPE
As a shopper, go to My account > Payment methods > Add new
Select Cards as the payment method
Enter 4242424242424242 and save
Go to My Account > Payment methods and confirm a token exists for the selected card
On the Stripe dashboard, go to the page for this customer
Delete the payment method you just saved
As the shopper, add a product to the cart and go to the Block checkout page
Notice that the payment method continues to be displayed
Creating local tokens:
As a shopper, go to My Account > Payment methods
Notice the payment methods that are listed
On the Stripe dashboard, go to the page for this customer
Add a new card
As the shopper, add a product to the cart and go to the Block checkout page
Notice that the newly added payment method isn't listed in the local tokens
Expected behavior
When visiting the Block checkout page, local tokens must be synced to the payment methods that exist in Stripe.
The text was updated successfully, but these errors were encountered:
Describe the bug
When the local tokens and the payment methods in Stripe are out of sync, they don't get synced by visiting the Block checkout.
Bit of context:
When retrieving the tokens for a user, we check them with the payment methods saved in Stripe. The payment methods in Stripe are our source of truth. Local payment methods will get created or deleted according to those. This is handled by WC_Stripe_Payment_Tokens::woocommerce_get_customer_upe_payment_tokens().
To Reproduce
Deleting local tokens:
add/deferred-intent
4242424242424242
and saveCreating local tokens:
Expected behavior
When visiting the Block checkout page, local tokens must be synced to the payment methods that exist in Stripe.
The text was updated successfully, but these errors were encountered: