#elBR

1 messages · Page 1 of 1 (latest)

frozen parcelBOT
desert roost
#

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

lunar pond
#

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

desert roost
#

Ah detached mode in your shell?

lunar pond
#

yes

#

how can I start in my server?

#

shouldn't it be started in my shell?

desert roost
lunar pond
#

but how do others implement thiis in production?

desert roost
#

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

lunar pond
#

that's the problem

desert roost
#

One sec looking for the doc

lunar pond
#

because I am using a production environment but I want to use my test API key

#

you understand my problem?

desert roost
#

You would set up a public URL on your server and create a webhook endpoint that points at that URL

lunar pond
#

I have done it

desert roost
#

You can set up test mode webhook endpoints

lunar pond
#

it functions locally

#

but I want to use the same webhook secret and test API even on production server

desert roost
lunar pond
#

I see only this

#

that below is my local pc

desert roost
#

Click on the "add endpoint" button

lunar pond
#

yes

#

then?

#

I added my endpoint

desert roost
#

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

lunar pond
#

where do I find the webhook secret?

#

does the newly created webhook has a new secret in comparison with my local one?

desert roost
#

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

lunar pond
#

can you please send me the page

desert roost
lunar pond
#

ok thank you