#ketaaa_webhooks
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/1266346668996169772
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! I'd suggest writing to https://support.stripe.com/?contact=true for questions about the Magento plugin, we don't know anything about it on this channel sorry.
Hi
thanks for answering me
the question is not linked to magento itself
i just want to send back an event
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
what does "send back" mean?
Use the "Resend" button
it have this error because I recreated the webhook endpoint
the webhook url remains the same, nothing changed, but it looks like i can't resend manually this event for example
and it happens for many events
The guide here explains the cause of the issue and how to resolve it: https://support.stripe.com/questions/i-m-receiving-the-webhook-error-origin-check-failed-in-my-magento-dashboard
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
OK, then if the issue is re-sending events you'll need to use the CLI: https://docs.stripe.com/cli/events/resend
trying now, can we keep this ticket open while i'm trying?
Sure
~ % stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such notification: 'evt_3Pg8ATJhyUplILGN0dV0toT1'; a similar object exists in live mode, but a test mode key was used to make this request.",
"param": "id",
"type": "invalid_request_error"
}
}
~ %
The CLI functions in test mode by default, you need to pass --live flag:
stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1 --live
Likely need to pass the new we_xxx ID you want to send it to too: https://docs.stripe.com/cli/events/resend#events_resend-webhook-endpoint
stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1 --live --webhook-endpoint=we_xxx
trying
~ % stripe events resend evt_3Pg8ATJhyUplILGN0dV0toT1 --live --webhook-endpoint=https://www.apojilab.com/stripe/webhooks
{
"error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such webhook endpoint: 'https://www.apojilab.com/stripe/webhooks'",
"param": "webhook_endpoint",
"type": "invalid_request_error"
}
}
You need to provide the we_xxx ID of the endpoint
Click the URL in your screenshot and it'll be available on that page
thanks
it's working
can you export me the list of all the events that are still in pending?
because as my webhook endpoint got re-initialised in Stripe, I dont have access to the list easily
I have to go on every transaction and check
We cannot, you can list them via the Events API though: https://docs.stripe.com/api/events/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
There's a delivery_success parameter you can pass to get the failed ones
thanks
and my last question is :
when I click "Resend" it says "Event does not exist" but will it automatically resend it to my new webhook endpoint if it's the same url?
No, you'll need to use the CLI as I've explained
Cool, hopefully that gets you what you need
thanks!!
do I have a way to not prompt for the password when im resending the events because i will script them
The CLI shouldn't prompt you for a password?