codepy python library
Project description
Python CodePay 码支付
支付宝 QQ全免 微信免手续费只需交易额度 无需担心第三方跑路资金直接到账 这里不会瞧不起个人站长 免费帮助个人实现支付后立即通知
Alipay QQ free Wechat free of fees only transaction limit ;There is no need to worry about the third party running funds directly to the account here will not look down on personal webmaster free help personal payment immediately after notice
使用教程 module Using the Tutorial
1. CodePayObj 初始化
codepay_obj = CodePay(
codepay_id='22XXXXX00638', # 商家ID
key='eead8fbdXXXX12080e64', # 秘钥
codepay_url= '创建订单的URL'
)
2. 调用功能
2.1 获取codePay 支付订单url
codepay_order_create_url = codepay_obj.get_codepay_pay_url(
type=1, # 支付类型
price=1, # 价格
pay_id='2000xxx9000', # 唯一支付ID
page=1,
notify_url='支付完毕回调地址',
return_url='支付完毕回调地址'
)
2.2 校验codePay返回的订单结果,
verify_result = codepay_obj.verify_order_return_result(订单相关参数)
if verify_result:
print('校验通过')
else:
print('校验不通过, 有人冒充CodePay平台')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CodePay-1.1.tar.gz
(5.3 kB
view details)
File details
Details for the file CodePay-1.1.tar.gz
.
File metadata
- Download URL: CodePay-1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9f8fac26009612f7488c50c7bcbd8fa074411c2ee98d0111306b3d0a54210b |
|
MD5 | 6018540790b252b69a9ccf01ae4a6e5a |
|
BLAKE2b-256 | 6b16838bc69a08b4d28a0a1342962b889c479c8aabc4e6eda416b92f3e6607d5 |