Accepting bitcoin as a merchant is never been that smooth other than its highly volatile prices and slow confirmation (1mb block size really?). Now try accepting bitcoin payment for customer to purchase your product/services is another big issue as well.
Bitcoin wallet (especially light wallet) need to have a proper callback function without downloading the whole pain in the ass 150 GB blockchain file into our VPS/server or relying on some 3rd party API like blockchain.info. Paypal/Mastercard/Visa has much better callback system than bitcoin system.
Do you support a light wallet to have callback function that will automatically call to your server whenever a payment is received, how much received, tx id, confirmation status using programming script in JSON format that works with Java/PHP?
Automatic Payment Callback JSONAutomatic callback function to your serverside script (
http://127.0.0.1/myscript) without the need of cronjob or manually curl the wallet. So that your computer will automatically detect transaction and mark paid invoices.
Xpub Generate Payment Address (Exists in electrum merchant)
{
"address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
"index": 0
}
Unconfirmed TX
{
"address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
"amount": 2000000,
"txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
"status": "0"
}
Partially confirmed TX (1~2 confirmations)
{
"address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
"amount": 2000000,
"txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
"status": "1"
}
Confirmed TX (>3 confirmations)
{
"address": "38H49jK1uvm8dLgykM8LM2nSBN1eK24wj9",
"amount": 2000000,
"txid" : "56d1cc5ec0a531b783680d880fd4b0a6bb62242162c1ead252bf2fc29c14e9d5",
"status": "2"
}
Related Article :
https://developer.coingate.com/docs/payment-callbackhttps://www.blockchain.com/api/api_receivehttps://www.blockonomics.co/views/api.htmlPardon for my noobie programming skills, Im not from CS major