#Joshua S

1 messages ยท Page 1 of 1 (latest)

rugged lagoonBOT
verbal palm
#

Hello! Can you share the Invoice ID so we can take a look?

karmic burrow
#

Sure! in_1MftFdGxfbdKdMxzlg51UhDr

#

I just noticed that my webhook endpoint is failing - maybe related?

verbal palm
#

Yes, that's almost certainly related - let me double check though

#

Yup, the webhook endpoint (you have two that are failing) is the issue

#

We wait for a successful response from all webhook endpoints that listen for the invoice.created event, otherwise we wait for 72 hours before finalizing the invoice

karmic burrow
#

OK - so the charge isn't going through then

#

Once I fix the webhooks, can I replay all of the pending ones?

#

Is this documented somewhere? This seemed quite mysterious to me today ๐Ÿ™‚

verbal palm
#

And yes, you should be able to replay all the pending events, but we'll also automatically retry those events (in live mode we retry up to 3 days)

karmic burrow
#

Cool thanks!

karmic burrow
#

how can I replay all the webhooks at once?

verbal palm
#

There isn't a single command that will replay all your pending webhook endpoints

karmic burrow
#

Ah. can I do it via the API then?

verbal palm
karmic burrow
#

๐Ÿ‘

#

Having trouble finding where the 'resend' endpoint would be

verbal palm
#

Sorry I didn't clarify - you'd need to use the API to retrieve all those events, and then you'd use the CLI tool to resend them

#

(but really, if it's not super urgent I'd suggest waiting on the events to be automatically resent by us)

karmic burrow
#

OK. It is a bit of a problem because charges are supposed to happen today. I'll see about using the CLI, thanks

verbal palm
#

You could also just finalize the Invoices yourself through the API

karmic burrow
#

Ah, that sounds like the best option. That should still work with my webhook logic

#

They should charge the default payment method at that time, correct?

#

Or after some delay? I finalized them and now see they are past due

verbal palm
#

It depends on the collection_method of the Invoice - we won't charge the default payment method if it's send_invoice

karmic burrow
#

Ah, that would be it I guess

verbal palm
karmic burrow
#

Doh my bad. I had left that from a previous implementation

#

I can still charge them though right?

verbal palm
#

If you're asking whether you can still charge them automatically w/o having them re-enter payment details the answer is yes as long as they already have a default payment method - but you'll either need to change the collection_method: charge_automatically so we know to charge it, or you can use the pay endpoint https://stripe.com/docs/api/invoices/pay)

karmic burrow
#

Yeah, I mean from now on, invoices should be generated correctly