lib/active_merchant/billing/gateways/payflow_express.rb in activemerchant-1.79.2 vs lib/active_merchant/billing/gateways/payflow_express.rb in activemerchant-1.80.0
- old
+ new
@@ -176,11 +176,11 @@
# Note: An ItemURL is supported in Paypal Express (different API), but not PayFlow Express, as far as I can tell.
# L_URLn nor L_ITEMURLn seem to work
end
if items.any?
xml.tag! 'ExtData', 'Name' => 'CURRENCY', 'Value' => options[:currency] || currency(money)
- xml.tag! 'ExtData', 'Name' => "ITEMAMT", 'Value' => amount(options[:subtotal] || money)
+ xml.tag! 'ExtData', 'Name' => 'ITEMAMT', 'Value' => amount(options[:subtotal] || money)
end
xml.tag! 'DiscountAmt', amount(options[:discount]) if options[:discount]
xml.tag! 'TotalAmt', amount(money), 'Currency' => options[:currency] || currency(money)
end
@@ -190,10 +190,10 @@
end
end
end
def add_paypal_details(xml, options)
- xml.tag! 'PayPal' do
+ xml.tag! 'PayPal' do
xml.tag! 'EMail', options[:email] unless options[:email].blank?
xml.tag! 'ReturnURL', options[:return_url] unless options[:return_url].blank?
xml.tag! 'CancelURL', options[:cancel_return_url] unless options[:cancel_return_url].blank?
xml.tag! 'NotifyURL', options[:notify_url] unless options[:notify_url].blank?
xml.tag! 'PayerID', options[:payer_id] unless options[:payer_id].blank?