#hieu-do_api

1 messages · Page 1 of 1 (latest)

devout ridgeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230822249011871797

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tawdry meadowBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

twin pine
#

Hi, let me help you with this.

#

If we don’t receive a successful response within 72 hours, we attempt to finalize and send the invoice.
I think that's what happened. The webhook failed to be delivered for long time, so the Invoice just got finalized.

umbral kite
#

I think it's previous step which is created invoice. I mentioned in the finalization phase.

twin pine
#

Not sure what you mean by this.
The docs say "During that time, we won’t attempt to charge the customer", however, after all attempts fail, the customer will be charged.

umbral kite
#

How many attempts are? Because my invoice was charged at 07:45:23 AM which is same as invoice.finalized webhook delivery time.

twin pine
#

Maybe due to many failures the Webhook endpoint was disabled, so the logic did not apply at all.

umbral kite
#

Hi there, sorry for the late response. Incase I have several webhook endpoints, for example connecting to multiple platforms that listen invoice.finalized/invoice.created hook. Does Stripe attempt to make a payment when only one webhook endpoint returns 2xx status code?

devout ridgeBOT
cobalt tangle
#

Yes

umbral kite
#

Awesome. Could you take a look at this invoice?https://dashboard.stripe.com/invoices/in_1P74b5KS8TSoP9bDblLWA1re
Stripe delivered invoice.created event to our backend and our backend returns Created status code (201). And Baremetrics platform rejected the webhook with 503 code.

I figured out that no invoice.finalized event was sent as you mentioned. What's the problem?
Moreover, we disconnected the Baremetrics platform at 03:40 PM GMT+12

cobalt tangle
#

Hmm, perhaps I was wrong and we require all active webhooks to 2xx ack the event

#

In this case you'll likely need to manually finalize if waiting the ~72 hours doesn't work

#

I'll relay feedback about the doc to clarify that all webhooks must return a successful response

umbral kite
#

So all active webhooks must return 2xx code for every events or just some specific events?
Does invoice.finalized hook require 2xx code from all webhooks?

cobalt tangle
#

So all active webhooks must return 2xx code for every events or just some specific events?
No this is a specific behaviour just to invoice.created events as explained on the doc you linked. Designed to allow any additions/changes to the invoice before we automatically finalize

umbral kite
#

Got it. Appreciate your support.

#

I will talk with my team about the manual finalization if waiting the ~72 hours doesn't work.

#

Thanks for updating this document.