#Barış Yıldırım

1 messages · Page 1 of 1 (latest)

pliant scarabBOT
limpid rain
#

Hi there,
Could you please share your accountId and the webhook id ?

fossil cedar
#

account id: acct_1LRtzRC2yFXwnFoO
webhook id: we_1LwLjJC2yFXwnFoOnwcX3XjU

limpid rain
#

thanks for sharing let me take a look

fossil cedar
#

Thank you

limpid rain
fossil cedar
#

Thank you

#

Actually the api exists and receives POST requests as expected.

#

it works in dev environment. Can you monitor that what is wrong with my API endpoint

limpid rain
#

I just tested your endpoint, now it responds, but it looks like it didn't responded earlier, your endpoint responded with:

<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.20.0</center>
</body>
</html>

Try to analyse the logs of that nginx and see what's causing the Bad Gateway exception

fossil cedar
#

If it works now, why it is still saying 'No webhook attempts in the past 15 days.'

#

The server is live for 3 months and we do not have any api problems except from this one.

limpid rain
#

Do you have connect accounts ?

fossil cedar
#

I'm sorry I don't know what is connect accounts

limpid rain
#

Did you created a webhook and deleted it earlier ?

fossil cedar
limpid rain
#

The event I shared was delivered to this webhook Id we_1LwLU4C2yFXwnFoOTAGSUJoJ but I'm seeing that it was deleted at 2022-10-24 08:02:02 UTC

fossil cedar
#

Do you want me to create new event? And I'll keep the webhooks as it is

limpid rain
#

For the new webhook, there is no event triggered after its creation

limpid rain
fossil cedar
#

When I came to checkout.session page it should create new event right?

limpid rain
#

You need to complete a checkout session in order to trigger an event

fossil cedar
#

How can I complete an event without making payment

limpid rain
#

Your webhook is listening to this event customer.updated Try to update a customer

fossil cedar
#

Ah now it works. Thank you a lot

#

I thought I was triggering when I create a session.

limpid rain
#

Glad to hear that 🙂

fossil cedar
#

🙂

#

just a quick question. When I create webhook, which one should I select. I need to update users at my database when they make payments.

limpid rain
#

As you're not using Stirpe Connect for now, keep the first option checked.
For more your curiosity, here is a guide throw Stripe Connect:
https://stripe.com/docs/connect
But for now keep that Option