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

Uploaded Source

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

Hashes for CodePay-1.1.tar.gz
Algorithm Hash digest
SHA256 6f9f8fac26009612f7488c50c7bcbd8fa074411c2ee98d0111306b3d0a54210b
MD5 6018540790b252b69a9ccf01ae4a6e5a
BLAKE2b-256 6b16838bc69a08b4d28a0a1342962b889c479c8aabc4e6eda416b92f3e6607d5

See more details on using hashes here.

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