Class ActiveMerchant::Billing::SecurePayTechGateway
In: lib/active_merchant/billing/gateways/secure_pay_tech.rb
Parent: Gateway

Methods

new   purchase  

Classes and Modules

Class ActiveMerchant::Billing::SecurePayTechGateway::SecurePayTechPostData

Constants

URL = 'https://tx.securepaytech.com/web/HttpPostPurchase'
PAYMENT_GATEWAY_RESPONSES = { 1 => "Transaction OK", 2 => "Insufficient funds", 3 => "Card expired", 4 => "Card declined", 5 => "Server error", 6 => "Communications error", 7 => "Unsupported transaction type", 8 => "Bad or malformed request", 9 => "Invalid card number"

Public Class methods

[Source]

    # File lib/active_merchant/billing/gateways/secure_pay_tech.rb, line 28
28:       def initialize(options = {})
29:         requires!(options, :login, :password)
30:         @options = options
31:         super
32:       end

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/secure_pay_tech.rb, line 34
34:       def purchase(money, creditcard, options = {})
35:         post = SecurePayTechPostData.new
36: 
37:         add_invoice(post, money, options)
38:         add_creditcard(post, creditcard)        
39:              
40:         commit(:purchase, post)
41:       end

[Validate]