Sha256: b84621788ef0213d81c09c9962efefc00708e5241a68ae16594357e4663546bd
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
module Workarea class Payment class Capture class FlowPayment include OperationImplementation include FlowPaymentOperation include FlowPaymentData def complete! validate_reference! transaction.response = handle_active_merchant_errors do gateway.capture( transaction.amount.to_f, transaction.reference.response.authorization, transaction_options ) end end def cancel! # noop, can't cancel a capture end private def transaction_options { currency: currency_code } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-flow_io-1.2.1 | app/models/workarea/payment/capture/flow_payment.rb |