Class: ActiveMerchant::Billing::TransFirstGateway
- Inherits:
-
Gateway
- Object
- Gateway
- ActiveMerchant::Billing::TransFirstGateway
- Defined in:
- lib/active_merchant/billing/gateways/trans_first.rb
Constant Summary
- 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'
Constants inherited from Gateway
Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary (collapse)
-
- (TransFirstGateway) initialize(options = {})
constructor
A new instance of TransFirstGateway.
- - (Object) purchase(money, credit_card, options = {})
Methods inherited from Gateway
card_brand, #card_brand, inherited, supports?, #test?
Methods included from CreditCardFormatting
Constructor Details
- (TransFirstGateway) initialize(options = {})
A new instance of TransFirstGateway
15 16 17 18 19 |
# File 'lib/active_merchant/billing/gateways/trans_first.rb', line 15 def initialize( = {}) requires!(, :login, :password) @options = super end |
Instance Method Details
- (Object) purchase(money, credit_card, options = {})
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/active_merchant/billing/gateways/trans_first.rb', line 21 def purchase(money, credit_card, = {}) post = {} add_amount(post, money) add_invoice(post, ) add_credit_card(post, credit_card) add_address(post, ) commit(post) end |