#max_api

1 messages ยท Page 1 of 1 (latest)

gloomy flowerBOT
#

๐Ÿ‘‹ 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/1261293234961780822

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

grizzled glacier
#

hi there!

#

coupons are another option yes

onyx bronze
#

So there's no real option to do it through checkout without coupons, I see

#

Is there some way to create coupons inline like you can with price_data?

grizzled glacier
#

or you would just calculate everything on your end. if the customer should pay $10, but they have $2 in their balance, just directly create a Checkout Session for $8.

#

but you'll need to keep track of the amounts owned on your end.

onyx bronze
#

I'll likely keep track of their balance on my end anyway for convenience

#

You said that they credit balance applies to invoices too, so if I let Stripe generate an Invoice for the checkout session, it should apply them?

grizzled glacier
#

good question, but no. it only works with Checkout Session if you would create a Subscription, which then creates Invoices.

onyx bronze
#

Ah, I see, the docs are a bit confusing then

grizzled glacier
#

which doc specifically?

onyx bronze
grizzled glacier
#

thanks for the feedback, I'll look into this.

onyx bronze
#

To be fair, it is in Billings and not payments, so it's only confusing if you don't read the breadcrumbs ๐Ÿ˜…

grizzled glacier
#

still, this could be clarified in the doc somewhere.

#

you're not the first one to ask that question

onyx bronze
#

I see