Skip to main content

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平台')

Metadata

Release files for CodePay 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CodePay 1.1
File Size Uploaded
CodePay-1.1.tar.gz 5.3 kB Details

Release files / CodePay-1.1.tar.gz

Download URL CodePay-1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9f8fac26009612f7488c50c7bcbd8fa074411c2ee98d0111306b3d0a54210b
BLAKE2b-256 checksum
How to use checksums
6b16838bc69a08b4d28a0a1342962b889c479c8aabc4e6eda416b92f3e6607d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page