Sha256: c6c8daef79b802904fe6cbbfa55c5327c8bd9d834756d7f9891d122cf12c3e0f

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

Opay.configure do |config|
  config.providers = [:payu, :paypal]

  config.test_mode = true
  # config.process_payments_localy = true if Rails.env.development?

  config.success_url = :success_payment_url
  config.cancel_url = :cancel_payment_url

  # payu configuration
  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']

  # paypal configuration
  config.paypal_login = ENV['PAYPAL_LOGIN']
  config.paypal_password = ENV['PAYPAL_PASSWORD']
  config.paypal_signature = ENV['PAYPAL_SIGNATURE']
  config.paypal_currency = 'EUR'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opay-1.2.8 lib/generators/opay/templates/opay_config.rb
opay-1.2.7 lib/generators/opay/templates/opay_config.rb
opay-1.2.6 lib/generators/opay/templates/opay_config.rb
opay-1.2.5 lib/generators/opay/templates/opay_config.rb