#make-a-wish-no-such-notification
1 messages · Page 1 of 1 (latest)
The error message basically means that the event was triggered in test mode but you are retrieving / accessing it using live mode key.
You mention
We thought we had solved the Problem
what have your team tried to resolve this issue?
tbh i dont know, the person is not in the office today..
What can i do to solve this?
We are using it on our website through wordpress - give wp donation plugin
You will just need to make sure your WP donation plugin is updated to use the right key
sk_live_xxx and pk_live_xxxx
another thing is to understand where the event came from. are you sending your test mode keys to your production endpoint?
i mean production webhook endpoint.
there are 2 Test keys in the donation plugin + the live and publish key
Do i have to delete the test keys in the plugin settings?
yes i think so
It really depends on the plugin settings. For your production mode, you will definitely need the live keys.
Both are actually in it, the test and live keys
i think we dont need the test keys?
we just checked, the plugin requires both, test and live keys
Can you check your webhook settings on dashboard
and see if your production webhook URL is registered as a test mode webhook in https://dashboard.stripe.com/test/webhooks
can you share the event ID evt_xxxx; I can check if I can find anything obvious
o i see
For this request req_sQl2PHZGKNKCa1, it is an event ID evt_00000000000000 which was a dummy invalid event Stripe sent when you click send testing webhook from your dashboard. this is merely for testing connectivity, it is not a real event
it will always fail
it looks like your production webhook https://makeawish.de?give-listener=stripe is registered in your test mode and listening to test events too. you can check that it actually appears on your dashboard https://dashboard.stripe.com/test/webhooks
You have two ways to resolve this
- Remove that live product URL from test mode and create another url for your test mode only which uses test mode keys
- Another option is not creating two separate URLs for live/test mode, but instead, in your code logic, you check if the event is a
liveortestmode event by looking at the event object itself https://stripe.com/docs/api/events/object#event_object-livemode
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
using the correct key based on that
But there is no Testmode on this webhook
what do you mean?
The webhook URL https://makeawish.de/?give-listener=stripe (production) is registered in https://dashboard.stripe.com/test/webhooks which means you are telling Stripe to send the test mode events to your production webhook handler
if you are not interested in receiving the test mode event
you should just remove https://makeawish.de/?give-listener=stripe from your dashboard https://dashboard.stripe.com/test/webhooks
so that you will stop receiving test mode events