#Carlos Mascarenhas-new-card
1 messages · Page 1 of 1 (latest)
Hi 👋 there are a couple options.
You can listen for events that signify a new payment method was added (payment_method.attached) and then set it as the customer's default.
Or you can look for a successful payment, either by inspecting the Payment Intent returned when confirmCardPayment is successful, or by listening for an event like payment_intent.succeeded, and then updating the customer's default payment method when you find a success.
Thanks meeseeks
Any time!