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
9 10 11 12 13 |
# File 'lib/forge/app/models/order_transaction.rb', line 9 def (amount, credit_card, = {}) process('authorization', amount) do |gw| gw.(amount, credit_card, ) end end |
.capture(amount, authorization, options = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/forge/app/models/order_transaction.rb', line 15 def capture(amount, , = {}) process('capture', amount) do |gw| gw.capture(amount, , ) end end |