lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.137.0

- old
+ new

@@ -279,14 +279,12 @@ end end end end - def build_xml_request + def build_xml_request(&block) builder = Nokogiri::XML::Builder.new - builder.__send__('VancoWS') do |doc| - yield(doc) - end + builder.__send__('VancoWS', &block) builder.to_xml end def url (test? ? test_url : live_url)