这是一个非官方的python京东支付api。
jdpa的Python项目详细描述
#jddpay是一款非官方的python京东支付api,它包含4个主要类:
>>;*支付账户
>;*支付请求
>;*退款请求
>;*查询请求
>;*通知
>;*下载账单
>
>
>
>
>
>
>
>
>
>
安装
>————————————————————————————————————————————————————————————————pip:
`` bash
pip安装jdpay
````
或者您可以参考https://github.com/hereischen/jdpay/dist
下载tar文件。
--
**payaccount**
它允许在不同的付款帐户方法之间切换,如仅借记卡(do)或借记卡和信用卡(dc)。
`` python
PayAccount
Pay账户=PayAccount(DC)
````
Pay账户将初始化为支持借记卡和信用卡的严肃设置。
**PayRequist**
JDPay Import PayRequist
表单数据=jd_pay.post(pay_params)
````
**query request**
此类处理payment查询。
``python
来自jdpay import queryrequest
query request=queryrequest(pay_account)
``````
**退款请求**
此类处理退款请求。
``python
refund request
refund\u request=refundrequest(支付账户)
````
**通知**
此类处理来自京东的通知。
`` python
return_dict,trade_dict=通知(通知帐户)。获取通知(resp)
`````
**downloadbill**
`` python
`` bill=downloadbill()。获取账单(账单日期='2015-07-08',后缀=''u 0430')
```
----
!
=============================br/>1.1.6-2015年8月14日-2015年6月14日
======>
-2015年7月17日-2015年7月17日-2015年7月17日-2015年7月14日-2015年7月10日-2015年7月10日-2015年7月10日-2015年7月1.1.1.1.4-1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.4>------------
-已修复通知中的错误()
1.1.3-2015年7月9日2015年6月1日至6月26日,它将返回一个更详细的通知dict,其中包含所有提供的信息。2015年
-------------------------
-更改了verify_merchant_sign_parse_response method。
如果get date失败,它将引发异常。
并且return res将与jd的逻辑相匹配。
2015年6月15日1.0
--------
-initail commit
>>;*支付账户
>;*支付请求
>;*退款请求
>;*查询请求
>;*通知
>;*下载账单
>
>
>
>
>
>
>
>
>
>
安装
>————————————————————————————————————————————————————————————————pip:
`` bash
pip安装jdpay
````
或者您可以参考https://github.com/hereischen/jdpay/dist
下载tar文件。
**payaccount**
它允许在不同的付款帐户方法之间切换,如仅借记卡(do)或借记卡和信用卡(dc)。
`` python
PayAccount
Pay账户=PayAccount(DC)
````
Pay账户将初始化为支持借记卡和信用卡的严肃设置。
**PayRequist**
JDPay Import PayRequist
````
**query request**
此类处理payment查询。
``python
来自jdpay import queryrequest
query request=queryrequest(pay_account)
``````
**退款请求**
此类处理退款请求。
``python
refund request
refund\u request=refundrequest(支付账户)
````
**通知**
此类处理来自京东的通知。
`` python
return_dict,trade_dict=通知(通知帐户)。获取通知(resp)
`````
**downloadbill**
`` python
`` bill=downloadbill()。获取账单(账单日期='2015-07-08',后缀=''u 0430')
```
----
!
=============================br/>1.1.6-2015年8月14日-2015年6月14日
======>
-2015年7月17日-2015年7月17日-2015年7月17日-2015年7月14日-2015年7月10日-2015年7月10日-2015年7月10日-2015年7月1.1.1.1.4-1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.4>------------
-已修复通知中的错误()
1.1.3-2015年7月9日2015年6月1日至6月26日,它将返回一个更详细的通知dict,其中包含所有提供的信息。2015年
-------------------------
-更改了verify_merchant_sign_parse_response method。
如果get date失败,它将引发异常。
并且return res将与jd的逻辑相匹配。
2015年6月15日1.0
--------
-initail commit