fix: nfc not working with jade

This commit is contained in:
Dev Team
2025-06-18 15:55:50 +06:30
parent b9aa1ec870
commit 46ab479c86
3 changed files with 101 additions and 29 deletions

View File

@@ -333,16 +333,16 @@ $(document).ready(function() {
paid_amount: amountToReceive,
receipt_no: receiptNo
}, "pay_success");
setTimeout(() => {
window.location.href = "/";
}, 2000);
}
},
error: (xhr, status, error) => {
console.log("Error:", error);
}
});
setTimeout(() => {
window.location.href = "/";
}, 1500);
}
function checkPaymentStatus() {
@@ -434,13 +434,16 @@ $(document).ready(function() {
success: function(data) {
if (data.status) {
customer_display_view(null, "reload");
window.location.href = "/";
}
},
error: function(xhr, status, error) {
console.log("Error:", error);
}
});
setTimeout(() => {
window.location.href = "/";
}, 1500);
});
});