#sabsod

1 messages · Page 1 of 1 (latest)

hollow berryBOT
compact wagon
#

hi! it depends on the context really since there mostly isn't such a concept. Can you say more about the use case, an example Customer cus_xxx and what you're trying so far?

shrewd spoke
#

yes

#

the scenario is:
customer has a subscription

#

but subscription has no default payment method

#

if i had well understand, stripe in that case try to pay with "customer" default payment method, because subscription has no explicit default payment method

compact wagon
#

yes in that case we would look to see if invoice_settings[default_payment_method] is set on the customer

shrewd spoke
#

perfect, thank you so much!

#

sorry, if customer has at least one payment method

#

is sure 100% that customer.invoice_settings[default_payment_method] will be populated, right?

#

i mean, i can't get null value, right?

compact wagon
#

you can get a null value

#

if you have not set that value in your integration code(like when you save the payment method, update that field), it will just be null and the subscription payment will fail