Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::FirstPayGateway

Constants

ACTIONS
LIVE_URL
TEST_URL

both URLs are IP restricted

Public Class Methods

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

Public Instance Methods

credit(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/first_pay.rb, line 63
def credit(money, reference, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, reference, options)
end
purchase(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/first_pay.rb, line 40
def purchase(money, creditcard, options = {})
  post = FirstPayPostData.new
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, options)
  add_customer_data(post, options)
  
  commit('sale', money, post)
end
refund(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/first_pay.rb, line 50
def refund(money, reference, options = {})
  requires!(options, :credit_card)

  post = FirstPayPostData.new
  add_invoice(post, options)
  add_creditcard(post, options[:credit_card])
  add_address(post, options)
  add_customer_data(post, options)
  add_credit_data(post, reference)

  commit('credit', money, post)
end
void(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/first_pay.rb, line 68
def void(money, creditcard, options = {})
  post = FirstPayPostData.new
  add_creditcard(post, creditcard)
  add_void_data(post, options)
  add_invoice(post, options)
  add_customer_data(post, options)
  
  commit('void', money, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.