EricLowber/blocipedia — pull request #3 by EricLowber (2014-12-21 17:46:03+00:00)
Title: Authorization

I added the Ultrahook gem, created the /stripehook POST route and put a pry call in the hook action.
Then I created an Ultrahook account and tested the webhook.

It did hit my /stripehook route, and I was able to see parameters in my terminal such as id, amount (500 cents), account balance, etc.

However, the terminal is telling me I'm getting an HTTP 422 error, and that I have an invalid authenticity token. I don't see any token at all in the terminal, just the error that the authenticity token is invalid.

when I run the charge in my app, everything works fine, and I get the "charge succeeded" view. When viewing the terminal at the same time, I get the same stuff as when I run the webhook test.