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.6 config/initializers/11_payment.rb
workarea-core-3.5.5 config/initializers/11_payment.rb
workarea-core-3.5.4 config/initializers/11_payment.rb
workarea-core-3.5.3 config/initializers/11_payment.rb
workarea-core-3.5.2 config/initializers/11_payment.rb
workarea-core-3.5.1 config/initializers/11_payment.rb
workarea-core-3.5.0 config/initializers/11_payment.rb
workarea-core-3.5.0.beta.1 config/initializers/11_payment.rb