Class: Payment::Gateways::BasePaymentGateway
- Inherits:
-
BaseService
- Object
- BaseService
- Payment::Gateways::BasePaymentGateway
- Defined in:
- app/services/payment/gateways/base_payment_gateway.rb
Direct Known Subclasses
CreditCard, Default, Echeck, Paypal, PaypalInvoice, PurchaseOrder, VerbalPurchaseOrder
Instance Method Summary collapse
Instance Method Details
#report_exception(exception, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/services/payment/gateways/base_payment_gateway.rb', line 3 def report_exception(exception, ={}) payment_id = [:payment]&.id || [:payment_id] = [:message] || String.new("General Payment Error") = .dup << ". For payment id #{payment_id}" if payment_id << "#{exception.}.\n #{exception.backtrace.join("\n")}" logger.error ErrorReporting.error exception, payment_id: payment_id, message: end |