When Braintree responds with an expired card error code during a one-click or express donation transaction, we want to delete the payment method from the DB and the user cookie to prevent this error from happening again, as it is not recommended to keep invalid payment methods on the user vault.
Overview
Ticket
https://app.asana.com/0/1119304937718815/1202971390231048/f
Demo of the change
https://user-images.githubusercontent.com/15176901/204674298-455a1bd1-23e2-40b3-abfb-374317ce7070.mp4