integrallis/stripe_event — pull request #2 by barancw (2012-08-13 21:25:22+00:00)
Title: Fixed nil error for @event instance variable

I noticed that the code that you had put into your application_controller.rb file was never executed in my application. This is where the @event variable was set. After moving this method into your webhook_controller.rb, everything worked fine.

I'm not sure if there was a reason why this ended up in the application_controller in the first place? I'm not that familiar with overriding the application controller.

The other issue that I ran into was the "WARNING: Can't verify CSRF token authenticity." This will throw a 500 error on it's own. Stripe will never send this correctly. I added in a workaround for this that I found for this so that it will be ignored in this controller.

Last thing I did was bump the version number for you by .1 so you can re-create the gem.

I left the application_controller.rb file in the repository for you to check out, but I think it's now safe to remove. Let me know if anything I did here doesn't make sense.

Cheers,
Chris