mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
Checkout page was not working correctly on /invoice?id=
This commit is contained in:
parent
4c57726be7
commit
c96a25c9b9
2 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue