Sha256: 0ed13bfbee165619b8813e8a4e708614135d7d2830e63a7370b3007251d01239

Contents?: true

Size: 375 Bytes

Versions: 28

Compression:

Stored size: 375 Bytes

Contents

if Rails.env.test? || Rails.env.development?
  ActiveMerchant::Billing::Base.mode = :test
end

if Rails.env.test?
  Workarea.config.fraud_analyzer = "Workarea::Checkout::Fraud::TestAnalyzer"
end

if Workarea.config.gateways.credit_card.blank?
  Workarea.config.gateways.credit_card = ActiveMerchant::Billing::BogusGateway.new
  ActiveMerchant::Billing::Base.mode = :test
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.27 config/initializers/11_payment.rb
workarea-core-3.5.26 config/initializers/11_payment.rb
workarea-core-3.5.25 config/initializers/11_payment.rb
workarea-core-3.5.23 config/initializers/11_payment.rb
workarea-core-3.5.22 config/initializers/11_payment.rb
workarea-core-3.5.21 config/initializers/11_payment.rb
workarea-core-3.5.20 config/initializers/11_payment.rb
workarea-core-3.5.19 config/initializers/11_payment.rb
workarea-core-3.5.18 config/initializers/11_payment.rb
workarea-core-3.5.17 config/initializers/11_payment.rb
workarea-core-3.5.16 config/initializers/11_payment.rb
workarea-core-3.5.15 config/initializers/11_payment.rb
workarea-core-3.5.14 config/initializers/11_payment.rb
workarea-core-3.5.13 config/initializers/11_payment.rb
workarea-core-3.5.12 config/initializers/11_payment.rb
workarea-core-3.5.11 config/initializers/11_payment.rb
workarea-core-3.5.10 config/initializers/11_payment.rb
workarea-core-3.5.9 config/initializers/11_payment.rb
workarea-core-3.5.8 config/initializers/11_payment.rb
workarea-core-3.5.7 config/initializers/11_payment.rb