stripe-rails icon indicating copy to clipboard operation
stripe-rails copied to clipboard

Question about catchall callback

Open lesliepoolman opened this issue 3 years ago • 1 comments

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!

lesliepoolman avatar Feb 16 '22 18:02 lesliepoolman

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!

haor1 avatar May 14 '22 23:05 haor1