#Satya
1 messages · Page 1 of 1 (latest)
hello! the difference is the API key that you're using - the key name will have test or live in it's name to indicate if it's a testmode key or livemode key
ok Thanks
how can we do the Webhook part to point the test to development& Live to live?
you should have two different endpoints in your server for test and production webhooks. You would setup the webhooks to be sent to the relevant endpoint either via the Dashboard (https://dashboard.stripe.com/test/webhooks or https://dashboard.stripe.com/webhooks) or using the API (with the relevant keys) : https://stripe.com/docs/api/webhook_endpoints
how the system(Stripe) will know which one to test & live?
i don't quite understand the question?
I have a Webhook for the payment status and I am making payment from the test environment and also from live
will the stripe will know which request came from which environment and send the webhook response respectively
alright, it's good to know you're not using Connect.
I added the Webhook as attached and only one place it is sending the data - so is this behaviour what you're expecting?
no, I am expecting that I have 2 servers one for testing & other for staging I want the stripe to update if the request is coming for test the webhook update to test otherwise staging
can you share your account id?
You can find your account id by logging in to https://dashboard.stripe.com/settings/account. It should be in the upper right hand corner and looks like acct_123
acct_1L92DxDyyET6Chbt
Hi
I am expecting that I have 2 servers one for testing & other for staging I want the stripe to update if the request is coming for test the webhook update to test otherwise staging
And are they in Stripe test or live mode?
from stripe to my application server
Yes, but the objects you're creating in Stripe – are you using your test or live keys?
I am not aware of that because this was done by other person and now I am taking care of it. Could you have any documentation for the webhooks?
There's loads. But as I see it you have 2 webhooks listening to payment_intent.* events
Yet there's no payment_intent.* events on your account
I'd recommend setting up the CLI to trigger events locally to send to your remote webhooks: https://stripe.com/docs/stripe-cli/overview