Sha256: a309524ffd9e0da2609e2c518452216d73fd156b05444fe72376fc9678a0853d
Contents?: true
Size: 1.49 KB
Versions: 3
Compression:
Stored size: 1.49 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.fraud_analyzer = 'Workarea::Checkout::Fraud::ForterAnalyzer' config.forter = ActiveSupport::Configurable::Configuration.new config.forter.site_id = nil config.forter.api_version = "2.3" config.forter.api_timeout = 2 config.forter.open_timeout = 2 config.forter.credit_card_gateway_name = nil # name of payment gateway used, ie. Stripe 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
workarea-forter-1.3.2 | config/initializers/workarea.rb |
workarea-forter-1.3.1 | config/initializers/workarea.rb |
workarea-forter-1.3.0 | config/initializers/workarea.rb |