#prashanthi3950
1 messages · Page 1 of 1 (latest)
hi! what does it mean exactly for Stripe to 'set' an auto-payment-method?
Stripe will make one card as auto payment method right for charging the customers? will stripe send any webhook when you set a card as auto payment method?
any event that we can consume and know that a particular card is set as auto payment method?
Stripe doesn't set that, generally it's something you do (like you call the API to set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method .) Still not really understanding what exactly you're referring to, an example from your account/your testing would help.
I mean setting a card to default card at stripe end for charging the customers
yep but again that is something you do through an API call like the one I mentioned, it doesn't just happen.
in any case if that field on the Customer object changes, if that is the field you are asking about, it generates a customer.updated webhook event you can listen to.
I understand, but will stripe notify when a card is set to default, so that we can call an API and get the details?
Just to double confirm "customer.updated" this is the webhook event stripe sends us when a card is set to default at stripe end?
it's sent whenever any field on a Customer object changes, and one of the fields on a Customer is invoice_settings[default_payment_method]
note that there is also you need to pass either https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method which sets the payment method on a per-subscription basis, and overrrides the Customer setting, so you need to be aware of that too.
Can I check if we send the default payment method ID, Stripe will set that as default card?
I really can't answer that unfortunately, it's super vague
you need to explain to me the exact API call/action that " if we send the default payment method ID" is.
okay.. So if we send payment method Id via params invoice_settings.default_payment_method
then that will be set as default card?
it does what the API reference says it does 🙂
to be used as the customer’s default payment method for subscriptions and invoices.
it makes the PaymentMethod ID you pass be the payment method that is charged by default for any subscription payments for that customer(if it is not overriden on a specific subscription).