mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
generate 7 digit pairing code, notify parent windows of checkout
This commit is contained in:
@@ -155,9 +155,15 @@ $("#copy-tab").click(function () {
|
||||
// Should connect using webhook ?
|
||||
// If notification received
|
||||
|
||||
var oldStatus = status;
|
||||
updateState(status);
|
||||
|
||||
function updateState(status) {
|
||||
if (oldStatus != status)
|
||||
{
|
||||
oldStatus = status;
|
||||
window.parent.postMessage({ "invoiceId": invoiceId, "status": status }, "*");
|
||||
}
|
||||
if (status == "complete" ||
|
||||
status == "paidOver" ||
|
||||
status == "confirmed" ||
|
||||
|
||||
Reference in New Issue
Block a user