lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/flo2cash.rb in activemerchant-1.106.0
- old
+ new
@@ -117,13 +117,13 @@
succeeded = success_from(raw[:status])
Response.new(
succeeded,
message_from(succeeded, raw),
raw,
- :authorization => authorization_from(action, raw[:transaction_id], post[:OriginalTransactionId]),
- :error_code => error_code_from(succeeded, raw),
- :test => test?
+ authorization: authorization_from(action, raw[:transaction_id], post[:OriginalTransactionId]),
+ error_code: error_code_from(succeeded, raw),
+ test: test?
)
end
def headers(action)
{
@@ -131,10 +131,10 @@
'SOAPAction' => %{"http://www.flo2cash.co.nz/webservices/paymentwebservice/#{action}"}
}
end
def build_request(action, post)
- xml = Builder::XmlMarkup.new :indent => 2
+ xml = Builder::XmlMarkup.new indent: 2
post.each do |field, value|
xml.tag!(field, value)
end
body = xml.target!
envelope_wrap(action, body)