mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-20 15:34:24 +01:00
Checkout page was not working correctly on /invoice?id=
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
var invoiceId = "@Model.InvoiceId";
|
||||||
var btcAddress = "@Model.BTCAddress";
|
var btcAddress = "@Model.BTCAddress";
|
||||||
var btcDue = "@Model.BTCDue"; //must be a string
|
var btcDue = "@Model.BTCDue"; //must be a string
|
||||||
var customerEmail = "@Model.CustomerEmail"; // Place holder
|
var customerEmail = "@Model.CustomerEmail"; // Place holder
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ function emailForm() {
|
|||||||
// Push the email to a server, once the reception is confirmed move on
|
// Push the email to a server, once the reception is confirmed move on
|
||||||
customerEmail = emailAddress;
|
customerEmail = emailAddress;
|
||||||
|
|
||||||
var path = window.location.pathname + "/UpdateCustomer";
|
var path = "i/" + invoiceId + "/UpdateCustomer";
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: path,
|
url: path,
|
||||||
@@ -186,7 +186,7 @@ function updateState(status) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var watcher = setInterval(function () {
|
var watcher = setInterval(function () {
|
||||||
var path = window.location.pathname + "/status";
|
var path = "i/" + invoiceId + "/status";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: path,
|
url: path,
|
||||||
type: "GET"
|
type: "GET"
|
||||||
|
|||||||
Reference in New Issue
Block a user