Module: Workarea::Payment::CreditCardOperation
- Included in:
- Authorize::CreditCard, Workarea::Payment::Capture::CreditCard, Purchase::CreditCard, Refund::CreditCard, StoreCreditCard
- Defined in:
- app/models/workarea/payment/credit_card_operation.rb
Instance Method Summary collapse
Instance Method Details
#gateway ⇒ Object
15 16 17 |
# File 'app/models/workarea/payment/credit_card_operation.rb', line 15 def gateway Workarea.config.gateways.credit_card end |
#handle_active_merchant_errors ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'app/models/workarea/payment/credit_card_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 |