Methods

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PaySecureGateway

Constants

SUCCESS
SUCCESS_MESSAGE
TRANSACTIONS

Currently Authorization and Capture is not implemented because capturing requires the original credit card information

URL

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/pay_secure.rb, line 25
def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  super
end

Public Instance Methods

purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/pay_secure.rb, line 31
def purchase(money, credit_card, options = {})
  requires!(options, :order_id)
  
  post = {}
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
       
  commit(:purchase, money, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.