Describe the bug
While on checked out on the fix/2872-dPE-APM-subscription-support branch (https://github.com/woocommerce/woocommerce-gateway-stripe/pull/2883), deleting an APM saved card (i.e. ideal) doesn't remove it from Stripe.
The next time the customer's cards are fetched from Stripe to sync to Woo, the deleted tokens are re-added back.
This issue is caused by WC_Stripe_Payment_Tokens::woocommerce_payment_token_deleted() not working properly when UPE gateway is enabled and the token is anything other than 'stripe'.
Describe the bug While on checked out on the
fix/2872-dPE-APM-subscription-support
branch (https://github.com/woocommerce/woocommerce-gateway-stripe/pull/2883), deleting an APM saved card (i.e. ideal) doesn't remove it from Stripe. The next time the customer's cards are fetched from Stripe to sync to Woo, the deleted tokens are re-added back.This issue is caused by
WC_Stripe_Payment_Tokens::woocommerce_payment_token_deleted()
not working properly when UPE gateway is enabled and the token is anything other than'stripe'
.To Reproduce Steps to reproduce the behavior:
fix/2872-dPE-APM-subscription-support
branchExpected behavior A clear and concise description of what you expected to happen.
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.