Sha256: 24cccb5640657d6ac61b35ff82fabcbb9fe793703ed88c5a5c48db39e54f0c6e
Contents?: true
Size: 1.33 KB
Versions: 2
Compression:
Stored size: 1.33 KB
Contents
Workarea.configure do |config| config.order_status_calculators.insert(0, 'Workarea::Order::Status::SuspectedFraud') config.payment_status_calculators.insert(0, 'Workarea::Payment::Status::SuspectedFraud') config.forter = ActiveSupport::Configurable::Configuration.new config.forter.site_id = nil config.forter.api_version = "2.2" config.forter.api_timeout = 2 config.forter.open_timeout = 2 config.forter.response_code = { 'ActiveMerchant::Billing::StripeGateway' => -> (transaction) { transaction.params['failure_code'] }, 'ActiveMerchant::Billing::BraintreeBlueGateway' => -> (transaction) { transaction.response.params["braintree_transaction"]["processor_response_code"] }, 'ActiveMerchant::Billing::MonerisGateway' => -> (transaction) { transaction.response.params["response_code"] }, 'ActiveMerchant::Billing::AuthorizeNetCimGateway' => -> (transaction) { transaction.response.params["direct_response"]["response_code"] }, 'ActiveMerchant::Billing::PayflowGateway' => -> (transaction) { transaction.response.params["result"] }, 'ActiveMerchant::Billing::CyberSourceGateway' => -> (transaction) { transaction.response.params["reasonCode"] }, 'ActiveMerchant::Billing::CheckoutV2Gateway' => -> (transaction) { transaction.response.params["responseCode"] || transaction.response.params["response_code"] } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-forter-1.2.3 | config/initializers/workarea.rb |
workarea-forter-1.2.2 | config/initializers/workarea.rb |