Parent

Methods

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::TwoCheckout::Helper

Public Class Methods

new(order, account, options = {}) click to toggle source
# File lib/active_merchant/billing/integrations/two_checkout/helper.rb, line 6
def initialize(order, account, options = {})
  super
  add_field('fixed', 'Y')
  
  if ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
    add_field('demo', 'Y')
  end 
end

Public Instance Methods

customer(params = {}) click to toggle source

mapping :description, ” mapping :tax, ” mapping :shipping, ”

# File lib/active_merchant/billing/integrations/two_checkout/helper.rb, line 50
def customer(params = {})
  add_field(mappings[:customer][:email], params[:email])
  add_field(mappings[:customer][:phone], params[:phone])
  add_field('card_holder_name', "#{params[:first_name]} #{params[:last_name]}")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.