爱意满满的作品展示区。
minibear2021

抖音支付用户量上来了,分享一个后端 Python sdk。

  •  
  •   minibear2021 ·
    minibear2021 · Jun 4 · 1556 views
    This topic created in 53 days ago, the information mentioned may be changed or developed.

    抖音现在普及率几乎能追上微信,抖音支付的申请门槛也不高,参考微信支付的 wechatpayv3: ,搞了个抖音支付的 python sdk ,基础的支付、回调、转账、分账都有了。

    https://github.com/minibear2021/douyinpay

    pip install douyinpay 即可

    from douyinpay import Config, AsyncDouyinPayClient
    
    config = Config(...)
    
    async def main():
        async with AsyncDouyinPayClient(config) as client:
            resp = await client.payments.app_prepay(...)
    
    3 replies    2026-06-04 11:01:21 +08:00
    Mitsutsuki
        1
    Mitsutsuki  
       Jun 4
    纯 python 后端?
    minibear2021
        2
    minibear2021  
    OP
       Jun 4
    @Mitsutsuki 服务器端,前端根据需要接 H5 、小程序或者二维码。
    jackerbauer
        3
    jackerbauer  
       Jun 4
    先 star 为敬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5514 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.