7
8
9
10
11
12
13
14
15
|
# File 'app/jobs/defra_ruby_mocks/govpay_payment_callback_job.rb', line 7
def perform(*response_url)
Rails.logger.debug "GovpayPaymentCallbackJob calling response URL #{response_url}"
RestClient::Request.execute(method: :GET, url: response_url)
rescue RestClient::ExceptionWithResponse => e
Rails.logger.debug "GovpayPaymentCallbackJob: RestClient received response: #{e}"
rescue StandardError => e
Rails.logger.error("GovpayPaymentCallbackJob: Error sending request to govpay: #{e}")
Airbrake.notify(e, message: "Error on govpay request")
end
|