receive/callback_log - 调试未完成支付
使用receive/callback_log
调用来调试未完成支付。
API调用
GET v2/receive/callback_log
查询参数:
- callback:回调URL
- key:blockchain.info的v2支付api密钥,点击这里申请密钥:https://api.blockchain.info/v2/apikey/request/
API返回值
返回支付日志数组。
示例代码
使用curl调用receive/callback_log
的示例代码如下:
curl https://api.blockchain.info/v2/receive/callback_log?callback=https%3A%2F%2Fmystore.com%3Finvoice_id%3D05892112%26secret%3DZzsMLGKe162CfA5EcG6j&key=[yourkeyhere]
返回值:
[
{
"callback": "https://mystore.com?invoice_id=058921123&secret=ZzsMLGKe162CfA5EcG6j&key=[yourkeyhere]",
"called_at": "2015-10-21T22:43:47Z",
"raw_response": "*bad*",
"response_code": 200
},
{
"callback": "http://mystore.com?invoice_id=058921123&secret=ZzsMLGKe162CfA5EcG6j&key=[yourkeyhere]",
"called_at": "2015-10-21T22:43:55Z",
"raw_response": "*bad*",
"response_code": 200
}
]