commit 1289d8bb108f2632deea0532876a91e3764ec7e2
parent ef59ca20dd47f739f223303873f5891e29317515
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Fri, 15 Jan 2021 02:22:04 +1100
updated server conn js
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/static/server_connection.js b/static/server_connection.js
@@ -1,5 +1,5 @@
// Websocket logic, talks to server.py pay
-function initiate(amount, id) {
+function initiate(payment_data) {
namespace = '/';
var socket = io(namespace);
@@ -21,7 +21,7 @@ function initiate(amount, id) {
cb();
});
- socket.emit('make_payment', {'amount': amount, 'label' : id});
+ socket.emit('make_payment', payment_data);
return false
}