#bokehdan
1 messages · Page 1 of 1 (latest)
Hi, sorry I don't really follow your usecase. A Webhook event is triggered whenever and right away after the Invoice is created, with an event invoice.created You can't really control the time
Webhook event is meant to be sent immediately after something happens
@prime bluff Ok, thanks for letting me know. Our use case was to use the webhook to send an email to the customer from our platform, but only in certain situations.
@prime bluff to give a better example, we would use Stripe invoices to build an invoice for the customer which they can pay through our website (after they have created an account with us). In this situation we would want the webhook to trigger our platform to send the customer an email.
In other cases, if we were just generating an invoice and didn't need to send an email, I'm not sure if there is anything in the webhook we can use to tell our platform not to send the email...
That would be simple where you received the webhook event, you can put your logic to decide to send an email or not. Webhook is just a way we (Stripe) notice you (merchant). It's up to you to do anything relevant with your business scenario
Hi! I'm taking over from my colleague. Please, let me know if you have any other questions.