Giter Club home page Giter Club logo

Comments (4)

fzlee avatar fzlee commented on July 19, 2024
  1. 验证同步接口的返回, 建议参看源代码里面的 这个函数_verify_and_return_sync_response,里面有一个比较笨的验证同步接口的函数。

  2. 交易预创建返回的是一个字符串,一般直接传给网页前端, 网页前端调用相应的库将字符串渲染成二维码。

from alipay.

bearllm avatar bearllm commented on July 19, 2024

alipay = AliPay(appid="", ...)

create an order

alipay.api_alipay_trade_precreate (
subject="test subject",
out_trade_no="out_trade_no",
total_amount=100
)

例程是这样的
您的意思是可以

rq_url=alipay.api_alipay_trade_precreate (
subject="test subject",
out_trade_no="out_trade_no",
total_amount=100
)

这样就得到了生成二维码的url么?

from alipay.

fzlee avatar fzlee commented on July 19, 2024

from alipay.

bearllm avatar bearllm commented on July 19, 2024

这个我知道哈,我之前没有用SDK已经自己实现了的,只是看到例程里面没有这样写,觉得有些奇怪,不然不生成二维码这个接口无意义

from alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.