#zuggie_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/1255093808157298711
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
๐ happy to help
it's not possible to create a subscription that is paid in full when billing_cycle_anchor is used
Alright. Any tips on how I could achieve this then?
I suggest using billing_cycle_anchor with proration none and adding an add_invoice_item to the subscription, in Checkout Sessions this means you add a one-time price and a subscription that starts in the future
yes
you create a Checkout Session in subscription mode
you pass 2 items to https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
one price for the subscription and one for a one-time payment
Alright thanks
You cannot set proration_behavior to none in a Checkout Session with one-time prices.
That's the error I'm getting
then you can use trial_period
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Alright
So trial_period does the trick, but it's just unfortunate that the checkout page looks so wonky with both the subscription showing up with "free period" and one-time showing up. But if that's the only way, I guess that's how it is ๐