lib/billomat/gateway.rb in billomat-1.1.0 vs lib/billomat/gateway.rb in billomat-1.2.0
- old
+ new
@@ -66,10 +66,10 @@
method: method,
url: url,
timeout: timeout,
headers: headers,
payload: body.to_json
- )
+ ).tap { |response| Billomat.configuration.after_response&.call(response) }
end
# @return [String] the complete URL for the request
def url
"https://#{config.subdomain}.billomat.net/api#{path}"