Class: AlphaCard::Credit

Inherits:
Sale show all
Defined in:
lib/alpha_card/transactions/credit.rb

Overview

Implementation of Alpha Card Services Credit transaction.

Examples:

credit = AlphaCard::Credit.new(card_expiration_date: '0117', card_number: '4111111111111111', amount: '1.00')
credit.create(order)

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

Constant Summary

Constants inherited from Sale

Sale::ORIGIN_TRANSACTION_VARIABLES

Constants inherited from Resource

Resource::ORIGIN_TRANSACTION_VARIABLES

Instance Attribute Summary collapse

Method Summary

Methods inherited from Sale

#payment, #process

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 ‘credit’)



16
# File 'lib/alpha_card/transactions/credit.rb', line 16

attribute :type, default: 'credit', writable: false