#ZaronologyLou - Webhooks
1 messages · Page 1 of 1 (latest)
Hello! You likely need separate Stripe accounts for this, or to make use of Stripe's test mode. Can you provide more details?
absolutely! so the integration is for a digital service, so the user is purchasing an account. I have a webhook set up to hit our endpoint with the charge.succeeded event to create an account for the user
we want a beta environment, and a live environment, that are both in stripes 'live' mode, but only kick off their respective webhooks. currently, one webhook points to betaapi.com and the other to productionapi.com, and they are both fired whenever any purchase is made in stripes 'live' mode
we have a staging environment set up in test mode, that works perfectly. its just since there are two webhooks in live mode (one for the beta account creation after purchase and one for the production acount after purchase), they both fire
Yep, you would need separate Stripe accounts for the two environments. There's no way to only send some live charge.succeeded events to one webhook endpoint and some to another with the same account.