Class: OrderTransaction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- OrderTransaction
- Defined in:
- lib/forge/app/models/order_transaction.rb
Class Method Summary collapse
- .authorize(amount, credit_card, options = {}) ⇒ Object
- .capture(amount, authorization, options = {}) ⇒ Object
Class Method Details
.authorize(amount, credit_card, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/forge/app/models/order_transaction.rb', line 6 def (amount, credit_card, = {}) process('authorization', amount) do |gw| gw.(amount, credit_card, ) end end |
.capture(amount, authorization, options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/forge/app/models/order_transaction.rb', line 12 def capture(amount, , = {}) process('capture', amount) do |gw| gw.capture(amount, , ) end end |