lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.116.0

- old
+ new

@@ -123,12 +123,11 @@ Response.new(successful?(response), message_from(response), hash_from_xml(response), test: test?, authorization: authorization_from(response), avs_result: { code: avs_result_from(response) }, - cvv_result: cvv_result_from(response) - ) + cvv_result: cvv_result_from(response)) end # The upstream is picky and so we can't use CGI.escape like we want to def escape_uri(uri) URI::DEFAULT_PARSER.escape(uri) @@ -255,10 +254,10 @@ # end def schema { 'xmlns' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', - 'xsi:schemaLocation' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1'} + 'xsi:schemaLocation' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1' } end def build_merchant_account(xml) xml.tag! 'merchantAccount' do xml.tag! 'accountNum', @options[:account_number]