add auditing for qrpay gateway

This commit is contained in:
Dev Team
2025-06-18 16:23:34 +06:30
parent 46ab479c86
commit 5bb7fa807d
5 changed files with 95 additions and 0 deletions

View 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