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 PaymentProcessor | |
# used for the initial signup flow | |
def self.hosted_signup_page_for(account_type, user) | |
"https://#{self.subdomain}.chargify.com/h/#{self.product_id(account_type)}/subscriptions/new?first_name=#{user.first_name}&last_name=#{user.last_name}&email=#{user.email}&reference=#{user.id}" | |
end | |
# used to send a user to their unique payment page in | |
# the event that they need to update their payment details | |
def self.update_payment_url_for(account) |
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
H::Application.routes.draw do | |
get "password_resets/create" | |
get "password_resets/edit" | |
get "password_resets/update" | |
get "logout" => "sessions#destroy", :as => "logout" | |
get "login" => "sessions#new", :as => "login" |