| Class | ActiveMerchant::Billing::PsigateGateway |
| In: |
lib/active_merchant/billing/gateways/psigate.rb
|
| Parent: | Gateway |
| TEST_URL | = | 'https://dev.psigate.com:7989/Messenger/XMLMessenger' |
| LIVE_URL | = | 'https://secure.psigate.com:7934/Messenger/XMLMessenger' |
| SUCCESS_MESSAGE | = | 'Success' |
| FAILURE_MESSAGE | = | 'The transaction was declined' |
# File lib/active_merchant/billing/gateways/psigate.rb, line 53
53: def initialize(options = {})
54: requires!(options, :login, :password)
55: @options = options
56: super
57: end
Psigate PreAuth
# File lib/active_merchant/billing/gateways/psigate.rb, line 60
60: def authorize(money, creditcard, options = {})
61: requires!(options, :order_id)
62: options.update({ :CardAction => "1" })
63: commit(money, creditcard, options)
64: end
Psigate PostAuth
# File lib/active_merchant/billing/gateways/psigate.rb, line 74
74: def capture(money, authorization, options = {})
75: options.update({ :CardAction => "2", :order_id => authorization })
76: commit(money, nil, options)
77: end
Psigate Credit
# File lib/active_merchant/billing/gateways/psigate.rb, line 81
81: def credit(money, authorization, options = {})
82: options.update({ :CardAction => "3", :order_id => authorization })
83: commit(money, nil, options)
84: end