lib/generators/opay/templates/opay_config.rb in opay-1.1.6 vs lib/generators/opay/templates/opay_config.rb in opay-1.2.0

- old
+ new

@@ -1,12 +1,17 @@ Opay.configure do |config| - config.provider = :payu + config.providers = [:payu, :paypal] + config.test_mode = true + # config.process_payments_localy = true if Rails.env.development? + # payu configuration - config.pos_id = 999 - config.pos_auth_key = '' - config.key1 = '' - config.key2 = '' + config.payu_pos_id = ENV['PAYU_POS_ID'] + config.payu_pos_auth_key = ENV['PAYU_POS_AUTH_KEY'] + config.payu_key1 = ENV['PAYU_KEY1'] + config.payu_key2 = ENV['PAYU_KEY2'] - # config.test_mode = true - # config.process_payments_localy = true + # paypal configuration + config.paypal_login = ENV['PAYPAL_LOGIN'] + config.paypal_password = ENV['PAYPAL_PASSWORD'] + config.paypal_signature = ENV['PAYPAL_SIGNATURE'] end