mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 13:38:24 -04:00
Switched paypal settings to figaro
This commit is contained in:
@@ -58,9 +58,9 @@ Growstuff::Application.configure do
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
paypal_options = {
|
||||
:login => ENV['PAYPAL_USERNAME'] || 'dummy',
|
||||
:password => ENV['PAYPAL_PASSWORD'] || 'dummy',
|
||||
:signature => ENV['PAYPAL_SIGNATURE'] || 'dummy'
|
||||
:login => ENV['GROWSTUFF_PAYPAL_USERNAME'] || 'dummy',
|
||||
:password => ENV['GROWSTUFF_PAYPAL_PASSWORD'] || 'dummy',
|
||||
:signature => ENV['GROWSTUFF_PAYPAL_SIGNATURE'] || 'dummy'
|
||||
}
|
||||
::STANDARD_GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(paypal_options)
|
||||
::EXPRESS_GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(paypal_options)
|
||||
|
||||
@@ -89,9 +89,9 @@ Growstuff::Application.configure do
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :production
|
||||
paypal_options = {
|
||||
:login => ENV['PAYPAL_USERNAME'],
|
||||
:password => ENV['PAYPAL_PASSWORD'],
|
||||
:signature => ENV['PAYPAL_SIGNATURE']
|
||||
:login => ENV['GROWSTUFF_PAYPAL_USERNAME'],
|
||||
:password => ENV['GROWSTUFF_PAYPAL_PASSWORD'],
|
||||
:signature => ENV['GROWSTUFF_PAYPAL_SIGNATURE']
|
||||
}
|
||||
::STANDARD_GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(paypal_options)
|
||||
::EXPRESS_GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(paypal_options)
|
||||
|
||||
@@ -85,9 +85,9 @@ Growstuff::Application.configure do
|
||||
config.after_initialize do
|
||||
ActiveMerchant::Billing::Base.mode = :test
|
||||
paypal_options = {
|
||||
:login => ENV['PAYPAL_USERNAME'],
|
||||
:password => ENV['PAYPAL_PASSWORD'],
|
||||
:signature => ENV['PAYPAL_SIGNATURE']
|
||||
:login => ENV['GROWSTUFF_PAYPAL_USERNAME'],
|
||||
:password => ENV['GROWSTUFF_PAYPAL_PASSWORD'],
|
||||
:signature => ENV['GROWSTUFF_PAYPAL_SIGNATURE']
|
||||
}
|
||||
::STANDARD_GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(paypal_options)
|
||||
::EXPRESS_GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(paypal_options)
|
||||
|
||||
Reference in New Issue
Block a user