I am using Blockchain API v2 and i am trying to create bill for payment and send to my customer via telegram bot. Following is the code:
xpub='***'
keyk='02e57f1***'
url='https://api.blockchain.info/v2/receive?xpub='+str(xpub)+'&callback=https%3A%2F%2Fdoors03.ru&key='+keyk
x=requests.get(url)
r=x.json()
r=r['address']
When I am checking if the payment was received to the above address using this:
data={ "Content-Type": "text/plain","key":keyk,"addr":r,"callback":"https%3A%2F%2Fdoors03.ru","onNotification":"KEEP", "op":"RECEIVE"}
r = requests.post(url, data=data)
I get this error: {\n "message" : "Internal handlers error"\n}
Kindly help me wherever I am going wrong.