lib/offsite_payments/integrations/authorize_net_sim.rb
# Add ship_to_address in the same format as the normal address is
# added.
Add ship_to_address in the same format as the normal address is
added.
Add ship_to_address in the same format as the normal address is added .
def ship_to_address(options)
          for setting in [:first_name, :last_name, :company, :city, :state, :zip, :country] do
            if options[setting] then
              add_field 'x_ship_to_' + setting.to_s, options[setting]
            end
          end
          raise 'must use :address1 and/or :address2' if options[:address]
          add_field 'x_ship_to_address', (options[:address1].to_s + ' ' + options[:address2].to_s).strip
        end
def ship_to_address ( options ) for setting in [ :first_name , :last_name , :company , :city , :state , :zip , :country ] do if options [ setting ] then add_field 'x_ship_to_' + setting . to_s , options [ setting ] end end raise 'must use :address1 and/or :address2' if options [ :address ] add_field 'x_ship_to_address' , ( options [ :address1 ] . to_s + ' ' + options [ :address2 ] . to_s ) . strip end
Add ship_to_address in the same format as the normal address is
added.
Add ship_to_address in the same format as the normal address is added .
options
<not_specific>