#eoghanobrien

1 messages · Page 1 of 1 (latest)

novel sluiceBOT
small schooner
#

Hi, taking a look at the event. In the meantime, can you confirm what you mean by 'it's not sending it out as a webhook'?

icy basalt
#

I mean when I call invoice.pay() it will create the invoice.finalization_failed event but it doesn't send it to our configured staging server

small schooner
#

I see, thank you for clarifying. From looking at your account, this event, https://dashboard.stripe.com/test/events/evt_1N0semE3c9sWyeruVgA0KNJI was not sent to your test webhook endpoint as you're not listening to invoice.finalization_failed event. The events that you're listening are the following:

customer.subscription.updated
invoice.payment_failed
invoice.payment_succeeded

To correct this, you'd need to start listening to this event as well: https://stripe.com/docs/development/dashboard/local-listener so it can be sent to your webhook endpoint.

icy basalt
#

Just added it and retried invoice.pay() but no webhook sent

small schooner
#

Have you sent another event, it's not retroactive. It will only handle new events when you add new events to the webhook endpoint.

icy basalt
#

evt_1N0szkE3c9sWyeruw3EV8fV6

#

I can't set these specific events up locally because I get The event ‘invoice.finalization_failed’ is not supported by the Stripe CLI.

#

Ah it worked on another event and was dealt with appropriately by the application! Must have been some time lag because I didn't change anything else.

small schooner
#

Glad to hear it's working now

icy basalt
#

Thank you for pointing me in the right direction!