#ilman_sandbox-testmode-webhook-events
1 messages ยท Page 1 of 1 (latest)
๐ 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/1389163679752126464
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
can you share a Checkout Session ID (cs_xxx) that didn't trigger the event, or an Event ID (evt_xxx) that you didn't receive?
wait
Checkout session ID: cs_test_a1zwvVlezm3fIJgk6NQsxQTRHIJdnuhs
View: https://dashboard.stripe.com/test/checkout/sessions/cs_test_a1zwvVlezm3fIJgk6NQsxQTRHIJdnuhs
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I will verify it again
Created session: cs_test_a1NUqphyUX4TimM4wu80jhjJc9i0CX6EVGjzrfgE2TKyXLHAoItA97yw1o
View at: https://dashboard.stripe.com/test/checkout/sessions/cs_test_a1NUqphyUX4TimM4wu80jhjJc9i0CX6EVGjzrfgE2TKyXLHAoItA97yw1o
I initiat new transaction and log this one
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
that Checkout Session has status: "open". so it's expected that you didn't receive the checkout.session.completed event. can you complete the session?
also, it looks like you don't have any webhook endpoint configured on your Stripe account.
so make sure to create one, as explained here: https://docs.stripe.com/webhooks#register-webhook
Created session: cs_test_a1Owv37WZZpfjGkcZ7OGw0rwJldvRmJ690iV9RJBts9b3KHjKkLMWtJcT8
View at: https://dashboard.stripe.com/test/checkout/sessions/cs_test_a1Owv37WZZpfjGkcZ7OGw0rwJldvRmJ690iV9RJBts9b3KHjKkLMWtJcT8
can you please check this one
also I have webhook configured webhook
https://066c-39-44-159-129.ngrok-free.app/api/webhook
this is the endpoint
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hi ๐
What event are you expecting to fire?
checkout.session.completed
The checkout.session.completed event did fire: https://dashboard.stripe.com/test/events/evt_1RfdfEGoCJebEzIGXl34TuRU but no webook endpoint was configured to listen for it
I'm looking at your account and there are no webhook endpoints configured
I created three webhooks
That is in a Sandbox account but the event did not occur in the Sandbox accunt
Try creating the Checkout Session using the API key from the Sandbox account
you said that I dont have webhook then why it give correct response when listen in stripe CLI and trigger the event from terminal
commands:
stripe listen --forward-to localhost:3000/api/webhook
stripe trigger checkout.session.completed
stripe listen forwards events to your local machine. It is for testing your webhook code before you register a webhook endpoint
thank brother the problem is solved.
Great ๐ I'm glad you got it sorted ๐