Sha256: 24d50d92af7023428cdf936736fce383caba90b81213b5f0b8dc3ab1ddd94d1f

Contents?: true

Size: 751 Bytes

Versions: 2

Compression:

Stored size: 751 Bytes

Contents

Workarea.configure do |config|
  config.order_status_calculators.insert(0, 'Workarea::Order::Status::Review')

  config.kount ||= ActiveSupport::Configurable::Configuration.new

  config.kount.enabled = true

  config.payment_status_calculators.insert_before(
    "Workarea::Payment::Status::NotApplicable",
    "Workarea::Payment::Status::KountDeclined"
  )

  config.payment_status_calculators.insert_after(
    "Workarea::Payment::Status::NotApplicable",
    "Workarea::Payment::Status::KountReview"
  )

  config.status_state_indicators = config.status_state_indicators.merge(
    kount_review: 'pending',
    kount_declined: 'danger',
  )

  unless Rails.env.test?
    config.fraud_analyzer = 'Workarea::Checkout::Fraud::KountAnalyzer'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-kount-3.3.1 config/initializers/workarea.rb
workarea-kount-3.3.0 config/initializers/workarea.rb