diff --git a/views/checkout.ejs b/views/checkout.ejs index cf22a7b..d8ffc77 100644 --- a/views/checkout.ejs +++ b/views/checkout.ejs @@ -79,10 +79,7 @@
-
- <% if (coupon) { %> -

asddsadsa

- <% } %> +

{%= aaa %>

You just bought: <%= product.name %>

diff --git a/web.js b/web.js index 07acbb0..df4e0e8 100644 --- a/web.js +++ b/web.js @@ -279,7 +279,7 @@ app.post('/checkout', function(request, response) { home: method + '://' + request.headers.host + '/', redirect: method + '://' + request.headers.host + request.url, socket_id: socket_id, - coupon: true + aaa: JSON.stringify(result); }); }); } else { @@ -293,8 +293,7 @@ app.post('/checkout', function(request, response) { product: product, home: method + '://' + request.headers.host + '/', redirect: method + '://' + request.headers.host + request.url, - socket_id: socket_id, - coupon: false + socket_id: socket_id }); } }