#daniel-mihalyi_unexpected

1 messages ยท Page 1 of 1 (latest)

cunning islandBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1258094769184182373

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

fleet kernel
#

Hello! Can you give me the ID of the Subscription in question so I can take a look? It's the ID that starts with sub_

gloomy veldt
#

Hi Rubeus ๐Ÿ‘‹ Thank you in advance.

#

Okok, on it.

#

This is the subscription id: sub_1PTWQx2CafrjrTJRb4ZKkwt9

fleet kernel
#

Looking...

#

At one point this Customer had both a default_source and invoice_settings.default_payment_method set. default_source is a legacy property, and if both are set, invoice_settings.default_payment_method takes precidence for Invoice payments over default_source. When you made the update on the 19th, you updated default_source, not invoice_settings.default_payment_method.

gloomy veldt
#

Is invoice_settings.default_payment_method a customer level setting?

gloomy veldt
#

Noted, thank you!

#

I can't find a reference to invoice_settings and invoice_settings.default_payment_method. In what why can thos properties be set besides setting them directly?

fleet kernel
#

Not sure I understand, I linked to the references above. Can you provde more details?

gloomy veldt
#

Sorry, let me rephrase.

According to what you said, my understanding is that we should keep using invoice_settings.default_payment_method from now on.

However, I would like to understand why we had something set for invoice_settings.default_payment_method.

In our implementation (that interacts with the Stripe servers) I can not see any part that explicitly sets invoice_settings.default_payment_method. Because you mentioned we did have a value there I wonder how that could have happened without someone changing the default card in the dashboard (and not via the API).

#

Anyway, I think I have sufficient information to proceed, thanks to you!

#

Have a nice day!

fleet kernel
#

It looks like things you did in the Dashboard modified both default_source and invoice_settings.default_payment_method at various points.

gloomy veldt
#

Is it possible that setting default_source to an id starting with pm_ automatically sets invoice_settings.default_payment_method?

fleet kernel
#

It's not possible to set default_source to a Payment Method object (pm_), so it would have to use invoice_settings.default_payment_method for that, yes.