Skip to main content

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

This version

1.1

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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page