lib/active_merchant/billing/gateways/be2bill.rb in activemerchant-1.105.0 vs lib/active_merchant/billing/gateways/be2bill.rb in activemerchant-1.106.0
- old
+ new
@@ -90,12 +90,12 @@
Response.new(
successful?(response),
message_from(response),
response,
- :authorization => response['TRANSACTIONID'],
- :test => test?
+ authorization: response['TRANSACTIONID'],
+ test: test?
)
end
def successful?(response)
%w(0000 0001).include?(response['EXECCODE'])
@@ -109,11 +109,11 @@
end
end
def post_data(action, parameters = {})
{
- :method => action,
- :params => parameters.merge(HASH: signature(parameters, action))
+ method: action,
+ params: parameters.merge(HASH: signature(parameters, action))
}.to_query
end
def signature(parameters, action)
parameters[:OPERATIONTYPE] = action unless parameters[:OPERATIONTYPE]