lib/active_merchant/billing/gateways/payflow_express.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/payflow_express.rb in activemerchant-1.106.0

- old
+ new

@@ -108,11 +108,11 @@ end private def build_get_express_details_request(token) - xml = Builder::XmlMarkup.new :indent => 2 + xml = Builder::XmlMarkup.new indent: 2 xml.tag! 'GetExpressCheckout' do xml.tag! 'Authorization' do xml.tag! 'PayData' do xml.tag! 'Tender' do xml.tag! 'PayPal' do @@ -124,21 +124,21 @@ end xml.target! end def build_setup_express_sale_or_authorization_request(action, money, options = {}) - xml = Builder::XmlMarkup.new :indent => 2 + xml = Builder::XmlMarkup.new indent: 2 xml.tag! 'SetExpressCheckout' do xml.tag! action do add_pay_data xml, money, options end end xml.target! end def build_sale_or_authorization_request(action, money, options) - xml = Builder::XmlMarkup.new :indent => 2 + xml = Builder::XmlMarkup.new indent: 2 xml.tag! 'DoExpressCheckout' do xml.tag! action do add_pay_data xml, money, options end end @@ -153,10 +153,10 @@ # Description field will be shown to buyer, unless line items are also being supplied (then only line items are shown). xml.tag! 'Description', options[:description] unless options[:description].blank? # Comment, Comment2 should make it to the backend at manager.paypal.com, as with Payflow credit card transactions # but that doesn't seem to work (yet?). See: https://www.x.com/thread/51908?tstart=0 xml.tag! 'Comment', options[:comment] unless options[:comment].nil? - xml.tag!('ExtData', 'Name'=> 'COMMENT2', 'Value'=> options[:comment2]) unless options[:comment2].nil? + xml.tag!('ExtData', 'Name' => 'COMMENT2', 'Value' => options[:comment2]) unless options[:comment2].nil? billing_address = options[:billing_address] || options[:address] add_address(xml, 'BillTo', billing_address, options) if billing_address add_address(xml, 'ShipTo', options[:shipping_address], options) if options[:shipping_address]