Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PayboxDirectGateway

Public Class Methods

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

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 68
def authorize(money, creditcard, options = {})
  post = {}
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  commit('authorization', money, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 82
def capture(money, authorization, options = {})
  requires!(options, :order_id)
  post = {}
  add_invoice(post, options)
  post[:numappel] = authorization[0,10]
  post[:numtrans] = authorization[10,10]
  commit('capture', money, post)
end
credit(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 101
def credit(money, identification, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, identification, options)
end
purchase(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 75
def purchase(money, creditcard, options = {})
  post = {}
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  commit('purchase', money, post)
end
refund(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 106
def refund(money, identification, options = {})
  post = {}
  add_invoice(post, options)
  add_reference(post, identification)
  commit('refund', money, post)
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 113
def test?
  @options[:test] || Base.gateway_mode == :test
end
void(identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/paybox_direct.rb, line 91
def void(identification, options = {})
  requires!(options, :order_id, :amount)
  post ={}
  add_invoice(post, options)
  add_reference(post, identification)
  post[:porteur] = '000000000000000'
  post[:dateval] = '0000'
  commit('void', options[:amount], post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.