What is my Stripe signing key and where can I find it?

Viewed 1157

I'm following this article. I am looking for my Stripe signing key, as needed here:

$ firebase functions:config:set \
   keys.webhooks="your_restricted_key" \
   keys.signing="your_signing_key" <--

At first I thought it was my publishing key, but after trying it I got the error in this question.

SOLUTION:

Go to:

Endpoints receiving events from your account

at dev/webhooks on stripe console.

click into your webhook:

it is under: Signing secret

1 Answers

It's the webhook signing secret whsec_123 on an individual webhook page when you click it from your dashboard here, which is used to verify event signatures.

Note that every configured endpoint has a unique key, even if pointing at the same URL. This is a common mistake. If, for example, you have a live & test endpoint pointed at the same URL, these will use distinct keys and you will need to distinguish the events for verifying the signature.

That said, the error you pointed to (invalid argument) appears unrelated to verifying signatures. You need to debug your handler to isolate what is causing the error and provide more detail here. What does your webhook handler code ook like? Where does the error come from? What is the input request type/body?

Related