#elBR
1 messages · Page 1 of 1 (latest)
Hello, can you explain your situation a bit more? You can still keep your previous webhooks when setting up new webhook endpoints.
So if your staging server is separate from your other test server, you should just be able to create a new webhook endpoint URL on your staging account and point it at the staging server
yes but I want to use it in detached mode
I am currently using stripe listen --forward-to localhost:3000/stripe/webhook
if I do Ctrl+c it will be stopped
Ah detached mode in your shell?
Unfortunately we won't know too much about that on this server as that is more of a question of how to use your specific terminal. If you are using bash I did find this SU thread that says that nohup may help you here https://superuser.com/questions/448445/run-bash-script-in-background-and-exit-terminal
but how do others implement thiis in production?
Quick question, are you just running local tests on this server or is this server actually going to be receiving external requests?
In production you do not use the stripe listen command
that's the problem
One sec looking for the doc
because I am using a production environment but I want to use my test API key
you understand my problem?
You would set up a public URL on your server and create a webhook endpoint that points at that URL
I have done it
You can set up test mode webhook endpoints
it functions locally
but I want to use the same webhook secret and test API even on production server
Did you do it from your dashboard? https://dashboard.stripe.com/test/webhooks
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Click on the "add endpoint" button
Now that you have added that endpoint, any events that you subscribed to will be sent to that URL. You can use the signing secret on that webhook's page to verify the events once they get to your server and you can then use your test mode keys to interact with any objects that you get through those events
where do I find the webhook secret?
does the newly created webhook has a new secret in comparison with my local one?
There is a section of that page that says "Signing Secret" if you click "Reveal" you will get the new secret
Yes it will be different
If you use the local one, verification will fail
can you please send me the page
It is the page you landed on after creating the endpoint. If you are already off of that page you can find it again from https://dashboard.stripe.com/test/webhooks
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok thank you