#speedemin_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1291131299465007145
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Do you want/need the set up fee to be distinguished differently from the normal line item?
Like if it is the same amount it sounds like you really just want to start a Subscription for a specific Price
Not necessarily as long as they are charged the right amount immediately
Yeah, if we can start the subscription and not use the pro-rated amount for the first month's payment that would work
Oh I see you are saying a Sub might start Jan 15th for $100 and then you want to charge on Feb 1st for $100 and have it renew the 1st of each month?
Yes
Okay and you are trying to use Stripe Checkout here?
Or a custom flow?
Looks like Stripe Checkout based on the small snippet you shared above
Yes, redirect to stripe.com checkout and back
So the easiest thing to do in that case is to create a Checkout Session with a one-time Price and a recurring Price and a trial period until the 1st of the next month.
So basically you pass two line items (https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items) and you pass subscription_data.trial_end (https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end)
Or you can use subscription_data.trial_period_days if you prefer that