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

@@ -241,6 +241,17 @@ class Foodcourt::QrpayController < BaseFoodcourtController
PrintReceiptJob.perform_later(current_shop.shop_code, sale_id)
PaymentGatewayAuditJob.perform_later({
receipt_no: Sale.find_by(sale_id: sale_id).receipt_no,
gateway_name: "MMQR",
endpoint_url: "",
event_type: "kbz.payment.success",
request_body: {},
response_body: {},
request_method: nil,
shop_code: Shop.current_shop.shop_code
})
if result[:status]
render json: result, status: :ok
else