lib/mundipagg/gateway.rb in better-mundipagg-0.1.2 vs lib/mundipagg/gateway.rb in better-mundipagg-0.1.3
- old
+ new
@@ -19,13 +19,13 @@
result = client.send(method, payload)
response = object.class::Response.new(result.body)
params = { body: result.body }
- options = {}
if response.success?
message = "Ok"
+ options = {}
else
message = response.error.message
options = { error_code: response.error.code }
end