#marketen_api

1 messages ยท Page 1 of 1 (latest)

serene condorBOT
#

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

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

merry oriole
#

hi there, just to make sure I understand, you're trying to avoid having a $0 invoice for a free trial, is that correct?

torpid quartz
#

hey. sorry for the mess.

yes, or removing the free trial entirely and invoicing the user 15 days after purchasing the product. So effectively the same

merry oriole
#

alternatively you could handle it completely on your backend. have some kind of time-based job on your server that kicks off the subscription creation at the appropriate date and time

torpid quartz
#

but by creating a subscription in the future, I wont have a subscription active until that time comes right?

merry oriole
#

correct, not on Stripe. you would track the user's subscription status on your backend until then

torpid quartz
#

no invoice will be generated, and I will have the subscription created on stripe since the beginning.

#

Also, since no invoice will be generated, should I listen for customer.subscription.created or checkout.session.completed events? Which one is better?

merry oriole
#

either one should work, you would just make sure the checkout.session.completed events you're looking at are for subscriptions

#

the data in checkout.session.completed will be a Checkout Session object, whereas customer.subscription.created will be a Subscription object. so it depends on what data you need access to at the time of catching the event

torpid quartz
merry oriole