Stripe Error: No signatures found matching the expected signature for payload

前端 未结 5 985
眼角桃花
眼角桃花 2021-01-03 19:02

I have a stripe webhook that call a Firebase function. In this function I need to verify that this request comes from Stripe servers. Here is the code :

cons         


        
5条回答
  •  囚心锁ツ
    2021-01-03 19:30

    This happened to me when sending a test webhook from the Stripe dashboard after I had renamed a firebase cloud function. All my other functions were working fine. Solved by re-setting in the terminal firebase functions:config:set stripe.webhook_signature="Your webhook signing secret" (if you're using that) and redeploying the functions firebase deploy --only functions

    On a second occasion I solved the problem by rolling the stripe signature in the stripe dashboard.

提交回复
热议问题