lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/epay.rb in activemerchant-1.137.0
- old
+ new
@@ -172,20 +172,24 @@
def commit(action, params)
response = send("do_#{action}", params)
if action == :authorize
- Response.new response['accept'].to_i == 1,
+ Response.new(
+ response['accept'].to_i == 1,
response['errortext'],
response,
test: test?,
authorization: response['tid']
+ )
else
- Response.new response['result'] == 'true',
+ Response.new(
+ response['result'] == 'true',
messages(response['epay'], response['pbs']),
response,
test: test?,
authorization: params[:transaction]
+ )
end
end
def messages(epay, pbs = nil)
response = "ePay: #{epay}"