Checkout page was not working correctly on /invoice?id=

This commit is contained in:
nicolas.dorier 2017-10-17 11:16:34 +09:00
parent 4c57726be7
commit c96a25c9b9
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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"