Module: Workarea::Payment::FlowPaymentOperation
- Included in:
- Authorize::FlowPayment, Capture::FlowPayment, Purchase::FlowPayment, Refund::FlowPayment, StoreFlowCreditCard
- Defined in:
- app/models/workarea/payment/flow_payment_operation.rb
Instance Method Summary collapse
Instance Method Details
#gateway ⇒ Object
15 16 17 |
# File 'app/models/workarea/payment/flow_payment_operation.rb', line 15 def gateway Workarea::FlowIo.gateway end |
#handle_active_merchant_errors ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/models/workarea/payment/flow_payment_operation.rb', line 4 def handle_active_merchant_errors begin yield rescue ActiveMerchant::ResponseError => error error.response rescue ActiveMerchant::ActiveMerchantError, ActiveMerchant::ConnectionError => error ActiveMerchant::Billing::Response.new(false, nil) end end |