#texonidas_code
1 messages ยท Page 1 of 1 (latest)
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.
- texonidas_api, 3 days ago, 24 messages
๐ 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/1254950612072927282
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, what are you trying to do exactly?
You can't explicitly set that when you create the CheckoutSession
Please read here on how it all works: https://docs.stripe.com/payments/paymentintents/lifecycle
so a subscription created via a checkout session can't be set to default incomplete?
Ahh, that is what you're asking.
i'm not using the subscription.create method though, I am doing it via checkout
Yeah, that is not possible: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data
right okay
so in that case,
why does the checkout issue an invoice.paid event?
that same page says to provision the subscription with checkout.session.completed
and that invoice.paid means another sub payment is received
but i'm also getting an invoice.paid as part of the checkout sequence
so which one should actually be doing the provisioning?
Yeah, that recommendaiton states that you should listen to checkout.session.completed event. Then, you continue provising the service on the subsequent months
so i should ignore the first invoice.paid event that comes in alongside the checkout.session.complete?
It depends on your integration and how you want to use it, but yes you can.
why are payments so complicated ๐ฟ
hahaha
thanks for your help
hopefully i don't have to rewrite this all for a 5th time
wait can i ignore the checkout complete and only use invoice paid instead?
is that a "safe" option?
Sure! That works as well