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
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 subscription_card_update expiring_card customer_update component_allocation_change metered_usage upcoming_renewal_notice end_of_trial_notice statement_closed statement_settled upgrade_downgrade_success upgrade_downgrade_failure refund_success refund_failure expiration_date_change ].freeze | |
SHARED_KEY = 'Chargify Shared Key Here' | |
def dispatch_handler | |
event = params[:event] |
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
<?php | |
// Who you want to recieve the emails from the form. | |
$sendto = 'andrewrichardgale@gmail.com'; | |
// The subject you'll see in your inbox | |
$subject = 'A message from Syndicate site'; | |
// Message for the user when he/she doesn't fill in the form correctly. | |
$errormessage = 'Looks like you are missing some info. Try again.'; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |