lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.102.0
- old
+ new
@@ -309,15 +309,15 @@
for key, value in item
if key == :options
options_element = item_element.add_element('options')
for option in value
opt_element = options_element.add_element('option')
- opt_element.add_element('name').text = option[:name] unless option[:name].blank?
- opt_element.add_element('value').text = option[:value] unless option[:value].blank?
+ opt_element.add_element('name').text = option[:name] unless option[:name].blank?
+ opt_element.add_element('value').text = option[:value] unless option[:value].blank?
end
else
- item_element.add_element(key.to_s).text = item[key].to_s unless item[key].blank?
+ item_element.add_element(key.to_s).text = item[key].to_s unless item[key].blank?
end
end
end
end
@@ -338,11 +338,11 @@
:ponumber => options[:ponumber],
:taxexempt => options[:taxexempt],
:terminaltype => options[:terminaltype],
:ip => options[:ip],
:reference_number => options[:reference_number],
- :recurring => options[:recurring] || 'NO', # DO NOT USE if you are using the periodic billing option.
+ :recurring => options[:recurring] || 'NO', # DO NOT USE if you are using the periodic billing option.
:tdate => options[:tdate]
},
:orderoptions => {
:ordertype => options[:ordertype],
:result => @options[:result]
@@ -393,11 +393,11 @@
params[:billing][:city] = billing_address[:city] unless billing_address[:city].blank?
params[:billing][:state] = billing_address[:state] unless billing_address[:state].blank?
params[:billing][:zip] = billing_address[:zip] unless billing_address[:zip].blank?
params[:billing][:country] = billing_address[:country] unless billing_address[:country].blank?
params[:billing][:company] = billing_address[:company] unless billing_address[:company].blank?
- params[:billing][:phone] = billing_address[:phone] unless billing_address[:phone].blank?
- params[:billing][:email] = options[:email] unless options[:email].blank?
+ params[:billing][:phone] = billing_address[:phone] unless billing_address[:phone].blank?
+ params[:billing][:email] = options[:email] unless options[:email].blank?
end
if shipping_address = options[:shipping_address]
params[:shipping] = {}