add auditing for qrpay gateway
This commit is contained in:
17
app/jobs/payment_gateway_audit_job.rb
Normal file
17
app/jobs/payment_gateway_audit_job.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class PaymentGatewayAuditJob < ApplicationJob
|
||||
queue_as :high_priority
|
||||
|
||||
def perform(data)
|
||||
# byebug
|
||||
PaymentGatewayAudit.record(
|
||||
receipt_no: data[:receipt_no],
|
||||
gateway_name: "MMQR",
|
||||
endpoint_url: data[:endpoint_url],
|
||||
event_type: data[:event_type],
|
||||
request_body: data[:request_body],
|
||||
response_body: data[:response_body],
|
||||
request_method: "POST",
|
||||
shop_code: data[:shop_code],
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user