add auditing for qrpay gateway
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user