pay icon indicating copy to clipboard operation
pay copied to clipboard

Webhooks not coming thourgh locally

Open simonsapiel opened this issue 3 years ago • 4 comments

Hi are the docs still up to date as it would seem that none of the supposed webhooks are coming through? I've correclty added the signing_secret to be the one

stripe listen --forward-to localhost:3000/pay/webhooks/stripe

outputs. I also don't have any pay.rb initializer as the webhook endpoints are supposed to be added automatically? I cannot find them in my routes though.

The only route for pay is

pay_path  /pay  Pay::Engine

simonsapiel avatar Sep 03 '22 11:09 simonsapiel

What do the logs show?

excid3 avatar Sep 03 '22 16:09 excid3

Nothing. The server is not being hitted by any requests related to the webhooks and neither is the local server running stripe listen getting any hits.

simonsapiel avatar Sep 04 '22 18:09 simonsapiel

For some reason all the webhooks are going into my staging app. I can verify this from the stripe webhooks logs, but this is odd behavior as I don't even have the signing secret in my credentials which is the one used by the staging app.

simonsapiel avatar Sep 04 '22 18:09 simonsapiel

The Stripe CLI is separate from standard webhooks that you configure on the Stripe dashboard.

excid3 avatar Sep 06 '22 18:09 excid3