#max_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
hi there!
Stripe has a customer balance: https://docs.stripe.com/billing/customer/balance
but it only works with invoices
coupons are another option yes
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?
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.
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?
good question, but no. it only works with Checkout Session if you would create a Subscription, which then creates Invoices.
Ah, I see, the docs are a bit confusing then
which doc specifically?
The one you sent
https://docs.stripe.com/billing/customer/balance
Since it just says "future invoices"
thanks for the feedback, I'll look into this.
To be fair, it is in Billings and not payments, so it's only confusing if you don't read the breadcrumbs ๐
still, this could be clarified in the doc somewhere.
you're not the first one to ask that question
I see