#prashanthi3950

1 messages · Page 1 of 1 (latest)

pallid portalBOT
digital ore
#

hi! what does it mean exactly for Stripe to 'set' an auto-payment-method?

primal lynx
#

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?

digital ore
primal lynx
#

I mean setting a card to default card at stripe end for charging the customers

digital ore
#

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.

primal lynx
#

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?

digital ore
#

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]

primal lynx
#

Can I check if we send the default payment method ID, Stripe will set that as default card?

digital ore
#

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.

primal lynx
#

okay.. So if we send payment method Id via params invoice_settings.default_payment_method

#

then that will be set as default card?

digital ore
#

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).