Screen confirms Blockchain tx
by borisjavier
HTML
<div id="results">Hola amigo, paga en el QR.</div>
JavaScript
setInterval(function() {
// $('#clickme').click(function() {
$.ajax({
url: 'https://bitek.co/1KA7XXvhJY7M7onJSjhMELWkGhDLgNnZuQ.json',
dataType: 'json',
success: function(data) {
var items = [];
$.each(data, function(key, val) {
$.each(val, function(ind,value) {
//items.push('<li id="' + ind + '">' + value + '</li>');
if(value=='0.0006016') {
$('#results').html('Pago exitoso!')
//alert(value);
}
//else return false;
});
});
$('<ul/>', {
'class': 'interest-list',
html: items.join('')
}).appendTo('body');
},
statusCode: {
404: function() {
alert('Hubo un problema con el servidor, si estas seguro del pago puedes reportar manualmente abajo.');
}
}
});
// });
}, 3000);
//window.setInterval(check, 3000);