Class: NimbleshopAuthorizedotnet::Authorizedotnet
- Inherits:
-
PaymentMethod
- Object
- PaymentMethod
- NimbleshopAuthorizedotnet::Authorizedotnet
- Defined in:
- app/models/nimbleshop_authorizedotnet/authorizedotnet.rb
Instance Method Summary collapse
Instance Method Details
#credentials ⇒ Object
11 12 13 |
# File 'app/models/nimbleshop_authorizedotnet/authorizedotnet.rb', line 11 def credentials { login: api_login_id, password: transaction_key } end |
#kapture!(order, processor_klass = nil) ⇒ Object
19 20 21 22 23 24 |
# File 'app/models/nimbleshop_authorizedotnet/authorizedotnet.rb', line 19 def kapture!(order, processor_klass = nil) processor_klass ||= NimbleshopAuthorizedotnet::Processor processor = processor_klass.new(order: order, payment_method: self) processor.kapture transaction_gid: order.payment_transactions.last.transaction_gid end |
#use_ssl? ⇒ Boolean
15 16 17 |
# File 'app/models/nimbleshop_authorizedotnet/authorizedotnet.rb', line 15 def use_ssl? self.ssl == 'enabled' end |