Method: Spree::PaymentMethod::StoreCredit#capture
- Defined in:
- app/models/spree/payment_method/store_credit.rb
#capture(amount_in_cents, auth_code, gateway_options = {}) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 |
# File 'app/models/spree/payment_method/store_credit.rb', line 30 def capture(amount_in_cents, auth_code, = {}) action = -> (store_credit) do store_credit.capture( amount_in_cents / 100.0.to_d, auth_code, [:currency], action_originator: [:originator] ) end handle_action(action, :capture, auth_code) end |