Methods

Class 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
 6:           def initialize(order, account, options = {})
 7:             super
 8:             add_field('fixed', 'Y')
 9:             
10:             if ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
11:               add_field('demo', 'Y')
12:             end 
13:           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
50:           def customer(params = {})
51:             add_field(mappings[:customer][:email], params[:email])
52:             add_field(mappings[:customer][:phone], params[:phone])
53:             add_field('card_holder_name', "#{params[:first_name]} #{params[:last_name]}")
54:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.