This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest/md5' | |
class Chargify::HooksController < ApplicationController | |
protect_from_forgery :except => :dispatch_handler | |
before_filter :verify, :only => :dispatch_handler | |
EVENTS = %w[ test signup_success signup_failure renewal_success renewal_failure payment_success payment_failure billing_date_change subscription_state_change subscription_product_change ].freeze | |
def dispatch_handler | |
event = params[:event] |