stripe-rails
stripe-rails copied to clipboard
Question about catchall callback
Hello,
I am having an issue where Stripe will sometimes send test mode events to the live mode endpoints. I have a staging site that I use to receive test mode events and I have test mode endpoints set up there.
To prevent the processing of test mode events, can I use the catchall callback to ignore the test mode events in production or would I need to specify this in each of my different callbacks?
I am hoping there is a more efficient way to ignore test mode events in production than needing to add a conditional filter to each event.
If there is documentation specifying this, please point me in its direction as I have not found any issues or documentation that specifies whether or not the catchall event can prevent my site from processing an event.
Thank you!
Hi, there. I work for the Stripe API support team. Stripe definitely shouldn’t be sending test mode events to live mode endpoints. Please contact us at [email protected] from the email address associated to your account along with a couple of these test mode event IDs (evt_xxxx) that are being sent to your live mode endpoint so that we may investigate what may be occurring here. Cheers!