#texonidas_code

1 messages ยท Page 1 of 1 (latest)

honest fableBOT
outer needleBOT
#

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.

honest fableBOT
#

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

restive geyser
#

Hi, what are you trying to do exactly?

#

You can't explicitly set that when you create the CheckoutSession

brazen crystal
#

so a subscription created via a checkout session can't be set to default incomplete?

restive geyser
#

Ahh, that is what you're asking.

brazen crystal
#

i'm not using the subscription.create method though, I am doing it via checkout

restive geyser
brazen crystal
#

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?

restive geyser
#

Yeah, that recommendaiton states that you should listen to checkout.session.completed event. Then, you continue provising the service on the subsequent months

brazen crystal
#

so i should ignore the first invoice.paid event that comes in alongside the checkout.session.complete?

restive geyser
#

It depends on your integration and how you want to use it, but yes you can.

brazen crystal
#

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?

restive geyser
#

Sure! That works as well