Class: AlphaCard::Capture

Inherits:
Transaction show all
Defined in:
lib/alpha_card/transactions/capture.rb

Overview

Implementation of Alpha Card Services Capture transaction.

Examples:

capture = AlphaCard::Capture.new(transaction_id: '981562', amount: '10.05')
capture.process

#=> #<AlphaCard::Response:0x1a0fda ...>

Constant Summary collapse

ORIGIN_TRANSACTION_VARIABLES =

Original AlphaCard transaction variables names

{
  transaction_id: :transactionid,
  order_id: :orderid
}.freeze

Instance Attribute Summary collapse

Method Summary

Methods inherited from Transaction

#process

Methods inherited from Resource

#attributes_for_request

Methods included from Attribute

included

Instance Attribute Details

#typeObject (readonly)

Transaction type (default is ‘capture’)



23
# File 'lib/alpha_card/transactions/capture.rb', line 23

attribute :type, default: 'capture', writeable: false