Skip to content

Instantly share code, notes, and snippets.

@batasrki
Forked from dpickett/braintree.rb
Created April 4, 2011 18:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save batasrki/902100 to your computer and use it in GitHub Desktop.
if Rails.env.production?
Braintree::Configuration.environment = Rails.env.staging? ? :sandbox : :production
Braintree::Configuration.merchant_id = ENV["braintree_merchant_id"]
Braintree::Configuration.public_key = ENV["braintree_public_key"]
Braintree::Configuration.private_key = ENV["braintree_private_key"]
else
Braintree::Configuration.environment = :sandbox
Braintree::Configuration.merchant_id = "<super secret>"
Braintree::Configuration.public_key = "<super secret>"
Braintree::Configuration.private_key = "<super secret>"
end
add_column :accounts, :payment_processor_subscription_id, :integer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment