用于bitpay支付网关api的非官方python api
pybitpa的Python项目详细描述
用于BitPay支付网关api的非官方python api。 您可以查看源代码here,并自行承担风险。
要创建发票,您可以执行以下操作:
from bitpay import BitPayAPI api = BitPayAPI('<Your API key goes here>') result = api.create_invoice( price=100, currency='USD', posData='order0001', buyerName='John', ) print result
要获取发票状态,您可以执行
result = api.get_invoice_status('<Invoice ID>') print result
这个api由EZComet.com提供,这是最好的实时消息推送服务。我们接受bitcoin!
作者博客:Victor Lin’s coding notes