We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after invoking invoice, the server response is null
null
Then the function catch an error: data.error is wrong.
$.ajax({ url:'/index.php?r=invoices/Btcpayserver', type: "POST", beforeSend: function() { $('#waiting_span-btc').hide(); $('#waiting_span-btc').after('<div class="waiting_span"><center><img width=25 src="'+ajax_loader_url+'"></center></div>'); }, data:{ 'id_pos' : '4', 'amount' : amount_val, }, dataType: "json", success:function(data){ $('.waiting_span').remove(); $('#waiting_span-btc').show(); console.log(data); if (data.error){ $('.error-header').addClass("bg-danger").show(); $('.error-message').text(data.error); return false; }else{ if ('Btcpayserver' != 'Bitpay') window.location.href = data.url; else top.location = data.url; } },
The text was updated successfully, but these errors were encountered:
jambtc
No branches or pull requests
after invoking invoice, the server response is
null
Then the function catch an error: data.error is wrong.
The text was updated successfully, but these errors were encountered: