ActiveMerchant::Billing::Integrations::Helper
# File lib/active_merchant/billing/integrations/payflow_link/helper.rb, line 8 def initialize(order, account, options = {}) super add_field('login', account) add_field('echodata', 'True') add_field('user2', self.test?) add_field('invoice', order) add_field('vendor', account) add_field('user', options[:credential4] || account) add_field('trxtype', 'S') end
# File lib/active_merchant/billing/integrations/payflow_link/helper.rb, line 42 def billing_address(params = {}) # Get the country code in the correct format # Use what we were given if we can't find anything country_code = lookup_country_code(params.delete(:country)) add_field(mappings[:billing_address][:country], country_code) add_field(mappings[:billing_address][:address], [params.delete(:address1), params.delete(:address2)].compact.join(' ')) province_code = params.delete(:state) add_field(mappings[:billing_address][:state], province_code.blank? ? 'N/A' : province_code.upcase) # Everything else params.each do |k, v| field = mappings[:billing_address][k] add_field(field, v) unless field.nil? end end
Generated with the Darkfish Rdoc Generator 2.