Class ActiveMerchant::Billing::Integrations::TwoCheckout::Helper
In: lib/active_merchant/billing/integrations/two_checkout/helper.rb
Parent: ActiveMerchant::Billing::Integrations::Helper

Methods

customer   new  

Public Class methods

[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

mapping :description, ’’ mapping :tax, ’’ mapping :shipping, ’’

[Source]

    # 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

[Validate]