I am using bitaps.com to receive bitcoin payments on my site, and I create the address perfectly by calling this.
/api/create/payment/{payout_address}/{callback}[?confirmations=0-10]
and when I do that I receive this:
{
"address": "14aT7ELki1pVWtryd5brMGqsFySWgjy8je",
"payment_code": "PMTvvdRdFBPvY1KrDeRxSuwr4nDcMVBenbX2rB2zRYHBHbGRYK5Lu",
"invoice": "invNfFnca2Vg49dDg77exiQmqrVKCMBWsBBrB95HNZGbAwqQpNY2b"
}
and now when I receive a payment I will get callback to the url I specified. How would I receive the callback, and how how would I return that I got it? In the docs it says this:
When a payment is received, Bitaps REST API will notify your's specified callback URL. In order to acknowledge successful processing of the callback, your server should respond with invoice number inside response body. In case server response incorrect, call back will be resent again for every new block within 3 days. Callbacks with not expected response may be blocked from the service.
How does it notify? Do I use $_get['address'];
? Or is it something else? Then after how do I return the invoice number to them?