#AdamTheDeveloper - checkout events
1 messages · Page 1 of 1 (latest)
Ok thanks. Looking
Ah it's because you added the webhook endpoint as a connect webhook endpoint
But the checkout session was created on your platform account
Sorry for not understanding here, but we are using Connect?
The webhook endpoint you created was a connect webhook
If you didn't mean to do that, then create a new one that's not in connect mode
This is what you did: https://stripe.com/docs/connect/webhooks
But that checkout session was only created on your platform (so not connect)
Right, I don't fully get the "why" it's not Connect, because it's showing in Connect. But I do understand the concept of adding another webhook without ticking that box to use for "connect mode". I'll try that 🙂 Thanks
No problem!
Is there a chance that the "success_url" is called before the checkout.session.completed completes?
I.e. is it safe to put the "order success" and fulfillment logic in the webhook script, or should it be on the success_url script?
You shouldn't ever rely on the success_url being reached
The client's browser could crash, etc.
The fulfillment logic should be in the webhook handler code
That's great. But will it be quick enough? or is it async?
Like will a user potentially get to the success_url before the webhook fires?
yeah that's possible
Timing isn't guaranteed
And it depends on network latency
success_url is just meant to display a success message though
You don't want to have too much logic revolving around it
Ok, thanks for the info. I've got it from here.
No problem