mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
update logic
This commit is contained in:
parent
67379d7c4f
commit
926b2870ed
@ -65,7 +65,10 @@
|
||||
ws.onmessage = function(event) {
|
||||
const data = JSON.parse(event.data);
|
||||
console.log('Payment status:', data.status);
|
||||
document.getElementById('server-response').submit();
|
||||
const isPaymentConfirmed = data.status == 2;
|
||||
if (isPaymentConfirmed) {
|
||||
document.getElementById('server-response').submit();
|
||||
}
|
||||
};
|
||||
|
||||
ws.onerror = function(error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user