#elianbraja

1 messages · Page 1 of 1 (latest)

vast creekBOT
oak solstice
#

👋 happy to help

#

you can try contact https://support.stripe.com/?contact=true and ask for whether this is possible or not

#

AFAIK it's not really something we offer

#

but I might be wrong

storm wigeon
#

okay thank you

oak solstice
#

let me know if you need any more help

storm wigeon
#

yes. I have a question regarding webhooks

#

I have a qa and a staging environment. On both of them I want to use the test environment webhook. How can I differentiate that the webhooks go to the correct environment?

#

If I just add another webhooks entpoint that will send the webhook to both environemnts, qa and staging and errors will be thrown

oak solstice
#

what changes between qa and staging in terms of the webhooks?

#

why do you need to differentiate?

storm wigeon
#

are two different environments

oak solstice
#

in terms of webhooks it doesn't really differ

storm wigeon
#

but both test

#

then I have production

oak solstice
#

you can use the same keys from test mode

#

and the same webhook endpoint secret

storm wigeon
#

but are two different environments, with different databases and users

#

does Stripe know if the request comes from QA or Staging and then forward the webhook to the correct environment?

oak solstice
#

you might need to add metadata in that case

#

e.g. if you create a PaymentIntent in qa you can add metadata:{env: 'qa'} on the Payment Intent

storm wigeon
#

okay, that's the only way

oak solstice
#

yes unfortunately it is

vast creekBOT