Class ActiveMerchant::Billing::TransFirstGateway
In: lib/active_merchant/billing/gateways/trans_first.rb
Parent: Gateway

Methods

new   purchase  

Constants

URL = 'https://webservices.primerchants.com/creditcard.asmx/CCSale'
UNUSED_FIELDS = %w(ECIValue UserId CAVVData TrackData POSInd EComInd MerchZIP MerchCustPNum MCC InstallmentNum InstallmentOf POSEntryMode POSConditionCode AuthCharInd CardCertData)
DECLINED = 'The transaction was declined'

Public Class methods

[Source]

    # File lib/active_merchant/billing/gateways/trans_first.rb, line 15
15:       def initialize(options = {})
16:         requires!(options, :login, :password)
17:         @options = options
18:         super
19:       end

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/trans_first.rb, line 21
21:       def purchase(money, credit_card, options = {})
22:         post = {}
23:         
24:         add_amount(post, money)
25:         add_invoice(post, options)
26:         add_credit_card(post, credit_card)        
27:         add_address(post, options)   
28:              
29:         commit(post)
30:       end

[Validate]