default test paypal gateway details to 'dummy' or it fails

This commit is contained in:
Skud
2013-05-29 13:22:17 +10:00
parent 89b62e18df
commit 5e678d1dbd

View File

@@ -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)