#zonosdustin

1 messages · Page 1 of 1 (latest)

bold flumeBOT
cerulean hatch
#

Hello there

#

Let me double check

#

Okay yeah this works just fine

#

You can use invoice_settings.default_payment_method with legacy objects (Cards/Sources) as well as with PaymentMethods

dull rose
#

Thanks. Do we need to unset the "default_source" parameter, or can we just add it to the "invoice_settings.default_payment_method"?

Also, if we set "invoice_settings.default_payment_method", would it override a different token in "default_source"? Or does the API unset or update the "default_source"?

cerulean hatch
#

invoice_settings.default_payment_method takes priority over default_source

dull rose
#

Ok. We will account for that in our design. Thank you!

cerulean hatch
#

Sure thing!

obsidian osprey
#

@cerulean hatch I am working with zonos-dustin which is why I am jumping into this thread. The problem we are running into is that we have thousands of customers who have customer accounts and payment methods built via the Stripe Dashboard. Their accounts have a default_source but no invoice_settings.default_payment_method.

We are trying to figure out how best to accommodate this discrepancy. Our initial plan was to pull the invoice_settings.default_payment_method and use it to display the default payment method id. However, due to the above-mentioned issue, the majority of our customers would have a null value for that field. The second plan would be to use the default_source but the Source API deprecated.

Do you know if the default_source inside of the customer object is directly associated with the Source Object?

Since the Source API is deprecated, if I attach a payment method to the customer and set the invoice_settings.default_payment_method property, does that also set the default_source property?

#

No matter how we implement setting up the default payment method through the Customer/PaymentMethod API, we will have to check the default_source for the default payment method because of the accounts that have been created via the Dashboard. This is why I am asking the above questions.

languid shore
#

Hi there 👋 jumping in as my teammate needed to step away. You should check both fields, they both can be used to specify a default source/payment method. invoice_settings.default_payment_method is given priority over default_source. Setting one field does not automatically adjust the other. Please let me know if it seems I overlooked any important details when taking over and catching up on context.