mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +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>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var invoiceId = "@Model.InvoiceId";
|
||||
var btcAddress = "@Model.BTCAddress";
|
||||
var btcDue = "@Model.BTCDue"; //must be a string
|
||||
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
|
||||
customerEmail = emailAddress;
|
||||
|
||||
var path = window.location.pathname + "/UpdateCustomer";
|
||||
var path = "i/" + invoiceId + "/UpdateCustomer";
|
||||
|
||||
$.ajax({
|
||||
url: path,
|
||||
|
@ -186,7 +186,7 @@ function updateState(status) {
|
|||
}
|
||||
|
||||
var watcher = setInterval(function () {
|
||||
var path = window.location.pathname + "/status";
|
||||
var path = "i/" + invoiceId + "/status";
|
||||
$.ajax({
|
||||
url: path,
|
||||
type: "GET"
|
||||
|
|
Loading…
Add table
Reference in a new issue