一个django应用程序,用于接收来自coinbase的付款通知
django-coinbase的Python项目详细描述
用于接收CoinBase支付通知的Django应用程序
开始
这是一个相当简单的应用程序。它由三部分组成:
- Webhook视图
- 存储Webhook接收数据的模型
- 接收/验证/存储Webhook数据时发出的信号
首先,您需要在requirements.txt中添加django coinbase pip将其安装到您的virtualenv中。下一步,您需要将coinbase添加到 已安装的应用程序设置您的settings.py文件。最后,你会想 在coinbase.urls的主urls.py文件中添加一个url include。
有一个信号,您可以在自己的项目中为其设置接收器 一些回调数据:
@receiver(order_received) def handle_order_received(sender, order, **kwargs): pass # do something with the order object, like enable a feature based on order.custom contents
您需要设置两种不同的设置:
Coinbase_API_键
这是api密钥,位于:https://coinbase.com/account/integrations
开发
运行测试套件:
$ pip install Django django-nose django-jsonfield mock requests $ python runtests.py
商业支持
这个应用程序,以及其他许多类似的应用程序,都是为支持Eldarion的 拥有自己的网站,以及我们客户的网站。我们很乐意为您的下一个项目提供帮助 所以给我们一张info@eldarion.com的便条。