mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 06:24:22 -04:00
Switched paypal settings to figaro
This commit is contained in:
1 parent
2cd5b1d2ed
commit
bc36713449
3 files changed
+9
-9
No files matched your search
@@ -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