mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 17:24:50 -04:00
default test paypal gateway details to 'dummy' or it fails
This commit is contained in:
@@ -57,9 +57,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['PAYPAL_USERNAME'] || 'dummy',
|
||||
:password => ENV['PAYPAL_PASSWORD'] || 'dummy',
|
||||
:signature => ENV['PAYPAL_SIGNATURE'] || 'dummy'
|
||||
}
|
||||
::STANDARD_GATEWAY = ActiveMerchant::Billing::PaypalGateway.new(paypal_options)
|
||||
::EXPRESS_GATEWAY = ActiveMerchant::Billing::PaypalExpressGateway.new(paypal_options)
|
||||
|
||||
Reference in New Issue
Block a user