Giter VIP home page Giter VIP logo

Comments (4)

fudiwei avatar fudiwei commented on July 3, 2024

同一商户订单号(out_trade_no)只能调用一次下单接口。

from dotnetcore.skit.flurlhttpclient.wechat.

XxyGitHub avatar XxyGitHub commented on July 3, 2024

同一商户订单号(out_trade_no)只能调用一次下单接口。

如果第一次没有支付 下一次我的那个订单需要再次支付 是把本地的订单号重新赋值吗

from dotnetcore.skit.flurlhttpclient.wechat.

fudiwei avatar fudiwei commented on July 3, 2024

如果第一次没有支付 下一次我的那个订单需要再次支付 是把本地的订单号重新赋值吗

你应该自行持久化下单时渠道返回的支付参数(例如 prepay_idpackagecode_url 等)。客户端短时间内重复唤起支付时使用之前的支付参数即可;长时间再次唤起使用新的商户订单号重新调用微信支付下单接口。

另外建议把你自己业务系统里的“订单号”,跟微信支付接口里的“订单号”区分开。前者是“业务订单号”,标识的是你自己业务系统里的一笔交易;后者是“渠道订单号”,标识的是支付渠道系统里的一笔交易。1 个“业务订单号”可以关联 N 个“渠道订单号” —— 例如你自己业务系统里同一笔订单,可以在小程序里唤起微信支付但不付款、又在 App 里唤起微信支付但也不付款、最后在网页端唤起支付宝支付完成付款,这个过程中你自己的业务订单号始终不变,渠道订单号每次都是新的。

from dotnetcore.skit.flurlhttpclient.wechat.

XxyGitHub avatar XxyGitHub commented on July 3, 2024

好的 明白了 非常感谢!

from dotnetcore.skit.flurlhttpclient.wechat.

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.