#jepezi - webhook
1 messages · Page 1 of 1 (latest)
hey soma!
So there are two main places to stroe the default payment method:
You can ignore customer.default_source, this is legacy.
- which webhook is best suit to get the updated default payment method.
You mean which webhook is triggered when the default payment method changes? It depends if it's on the customer it'scustomer.updated, and if it's on the subscription it'scustomer.subscription.updated
Thanks for this!
Do I have to test every action and see where Stripe stores it? Or you have docs explaining that?
What I mean is..
- confirmCardPayment (frontend) with new card from Elements
- Pay invoice button on customer portal
- Customer change default payment method on cutomer portal
I would recommend to test these flows to be sure.
In other words, are there ways to tell Stripe to store default payment method only on customer.invoice_settings.default_payment_method?