#maxime_api

1 messages ยท Page 1 of 1 (latest)

outer fernBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1227256194859663450

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

waxen obsidian
#

Example: I have a default payment method set for a customer:

#

I've got an active trial for that customer's subscription

#

Oh and precision as well, it's not an invoice, I've got "collection_method": "charge_automatically", in the response

dusky chasmBOT
scarlet basin
#

Hi @waxen obsidian so sorry for the delay, the server has been quite busy today. I'm taking a look.

waxen obsidian
#

Thanks Toby!

scarlet basin
#

I believe that is correct. I think we leave that field null if it's not direclty provided for the Invoice, and pull from either the Subscription object or Customer object when it is null. I don't think we backfill the field on the Invoice with the value from the Subscription/Customer.

waxen obsidian
#

Ok so if I want to know how is the customer going to pay, what's my best option? ๐Ÿค”
Check on the current subscription? Get the default payment? But it could be set differently on this particular sub

scarlet basin
#

Check the Subscription, if default_payment_method isn't set there, then look at the Customer object.

waxen obsidian
#

Umh.. that's a lot to get from the API. Ok I'll figure something out thanks!

scarlet basin