Class: ActiveMerchant::Billing::SecurePayTechGateway
- Defined in:
- lib/active_merchant/billing/gateways/secure_pay_tech.rb
Defined Under Namespace
Classes: SecurePayTechPostData
Constant Summary collapse
- 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" }
Constants inherited from Gateway
Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS
Instance Attribute Summary
Attributes inherited from Gateway
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SecurePayTechGateway
constructor
A new instance of SecurePayTechGateway.
- #purchase(money, creditcard, options = {}) ⇒ Object
Methods inherited from Gateway
#card_brand, card_brand, inherited, supports?, #test?
Methods included from Utils
Methods included from CreditCardFormatting
Methods included from RequiresParameters
Methods included from PostsData
included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request
Constructor Details
#initialize(options = {}) ⇒ SecurePayTechGateway
Returns a new instance of SecurePayTechGateway.
28 29 30 31 32 |
# File 'lib/active_merchant/billing/gateways/secure_pay_tech.rb', line 28 def initialize( = {}) requires!(, :login, :password) @options = super end |
Instance Method Details
#purchase(money, creditcard, options = {}) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/active_merchant/billing/gateways/secure_pay_tech.rb', line 34 def purchase(money, creditcard, = {}) post = SecurePayTechPostData.new add_invoice(post, money, ) add_creditcard(post, creditcard) commit(:purchase, post) end |