php中的比特币支付网关

时间:2017-10-30 07:21:30

标签: php payment-gateway bitcoin

我想在PHP中集成比特币支付网关 我在这里创建了帐户 - > https://gourl.io/info/memberarea/My_Account.html 我使用了这个github API - > https://github.com/cryptoapi/Payment-Gateway

我的脚本发送此请求 - > https://coins.gourl.io/result.php?b/17104/p/17104AAs3ew6Bitcoin77BTCPUBpwgOMgxMq81Fn9nMCnWTGrm/u/99346995__7958333d57/o/invoice000383/e/UW1gcHtnY20%3D/l/en/i/AAwHFAx4e2h7eXx8bGs%3D/h/948f4a7a4972e9cf4a8d2fe730922fad/z/654116&_=1509347729277

我收到了这个回复

{"status":"payment_not_received","err":"","public_key":"17104AAs3ew6Bitcoin77BTCPUBpwgOMgxMq81Fn9nMCnWTGrm"
,"box":17104,"boxtype":"captchabox","order":"invoice000383","user":"99346995__7958333d57","userformat"
:"","usercountry":"","period":"","amount":0,"amountusd":0,"coinlabel":"","coinname":"","addr":"","tx"
:"","confirmed":0,"timestamp":"","date":"","datetime":""}

1 个答案:

答案 0 :(得分:1)

  

17104AAs3ew6Bitcoin77BTCPUBpwgOMgxMq81Fn9nMCnWTGrm

这个gourl.io网关密钥,而不是比特币密钥。

这里的php例子(比特币json) - https://github.com/cryptoapi/Payment-Gateway/blob/master/Examples/json.php