#KarlS-webhook

1 messages ยท Page 1 of 1 (latest)

harsh quiver
#

Hi, you can trigger them using Stripe CLI!

harsh oar
#

really? ok, so for example, I received a payment earlier today and collected a charge.succesful event on my backend but realizing that I really need the invoice.paid event.

harsh quiver
#

Yeah, then from Stripe CLI you can

stripe trigger invoice.paid
harsh oar
#

isn't that just a test?

#

I need to reprocess an invoice.paid on an item received earlier today.

#

*I need to trigger..

harsh quiver
#

Oh I see, so you want to resend an event?

harsh oar
#

yes, but it was never sent previously

harsh quiver
#

Can you find its id in your Dashboard?

harsh oar
#

evt_1KgfWfG30Vl6ne6N7LiMhBFv

#

in_1KgfWcG30Vl6ne6Npjt2qv2q

harsh quiver
harsh oar
#

looking

#

ok hold on... if I reconfigure my webook (add additional events) I just resend the event from the dashboard...

#

and it (of course) send out the new webhook events

harsh quiver
#

Oh yeah you can do it from Dashboard too

harsh oar
#

ok, trying now!

#

Hmmm I actually am not finding the option to resend from the dashboard. Can you let me know where the option is? I know I've seen, and used it before!

harsh quiver
#

I guess because your event wasn't sent at all you don't see the option

harsh oar
#

no, it was sent.

harsh quiver
#

Don't you see this?

harsh oar
#

Under Webhooks?

harsh quiver
#

Under the specific event page

#

1 min

harsh oar
harsh quiver
#

I see you don't have attempts previously

harsh oar
#

strange.

#

i have proof on my end that I have received on.

harsh quiver
#

This is invoice.finalized

#

your webhook listens to invoice.paid, correct?

harsh oar
#

I just added invoice.paid. I'm listening for charge succeeded and failed.

#

that my filesystem on my server and the file contents of the event we are talking about

#

I did find the Resend button

#

OK, although I have found the Resend button this is not going to work as the Resend send exactly what was previously sent, in the case a charge.succeeded.

#

I'm trying to send an invoice.paid

#

That doesn't exist.

harsh quiver
#

I am a bit confused.... You want to resend an invoice.paid event, correct? The event id you gave me earlier (evt_1KgfWfG30Vl6ne6N7LiMhBFv) is invoice.finalized. I want to make sure we are talking about the same thing

harsh oar
#

OK. Earlier today my webhooks were setup for: charge.failed, charge.refunded, and charge.succeeded

#

Later someone paid their invoice.

#

Server side (my side) I received 1 event from you: charge.succeeded.

#

Now I am realizing that what I really need is to ALSO receive the invoice.paid event. I'm trying to figure out how to generate an invoice.paid from a previously recieve and paid for Invoice.

harsh quiver
#

Okie get it ๐Ÿ‘ Can you give me that invoice.paid event id again?

harsh oar
#

the invoice.paid event doesn't exist

harsh quiver
#

meaning it wasn't created in the first place?

harsh oar
#

i guess not.

#

i wasn't listenting for those events earlier today.

harsh quiver
#

evt_1KgfWfG30Vl6ne6NzGwfhKIv

#

I think this is it

#

for your Invoice in_1KgfWcG30Vl6ne6Npjt2qv2q

harsh oar
#

yes, ok that is it

#

right! and not webhook events

#

*no

harsh quiver
#

No attempts, so no button

harsh oar
#

correct

harsh quiver
#

so I think you can try the resend command, passing this id

harsh oar
#

worse case, i can at least grab the JSON from here.

#

ahh! ok..

#

i'm looking for it in the CLI

harsh quiver
harsh oar
#

thanks. hmm... my CLI is connected to TEST

harsh quiver
#

Yeah you would want a CLI running on the Live server

harsh oar
#

ok, let me see if I can figure that out. but I think this is it! once I get logged on.

harsh quiver
#

I suggest to test the resend command on your TEST environment first, using a different TEST event

harsh oar
#

ok

#

it is still not sending an invoice.paid