GithubHelp home page GithubHelp logo

Comments (3)

samurai00 avatar samurai00 commented on July 25, 2024

你是在生成 charge 的时候设置的吗?
如果设置了,在 300 秒之后使用该 charge 调用的话,微信会提示“订单已过期失效,请重新下单再发起支付”。

from pingpp-html5.

whyliam avatar whyliam commented on July 25, 2024

不好意思,我是不是应该在 pingpp-python 里问。

我在生成 charge 的时候设置, 返回

{
 "id": "ch_q5ufbPzTmDyDbbDqH*****",
 "object": "charge",
 "created": 1445916234,
 "livemode": true,
 "paid": false,
 "refunded": false,
 "app": "app_GezXP0rHW*****",
 "channel": "wx_pub",
 "order_no": "151027112354528*****",
 "client_ip": "10.201.66.**",
 "amount": 100,
 "amount_settle": 0,
 "currency": "cny",
 "subject": "移动手机****",
 "body": "仅限****",
 "extra": {
 "open_id": "oE-P7w8fq5Mt*****"
 },
 "time_paid": null,
 "time_expire": 1445916544,
 "time_settle": null,
 "transaction_no": null,
 "refunds": {
 "object": "list",
 "url": "/v1/charges/ch_q5ufbPzTmDyDbbDq*****/refunds",
 "has_more": false,
 "data": []
 },
 "amount_refunded": 0,
 "failure_code": null,
 "failure_msg": null,
 "metadata": {},
 "credential": {
 "object": "credential",
 "wx_pub": {
 "appId": "wxe0ba63b5*****",
 "timeStamp": "1445916234",
 "nonceStr": "c8c5b7cc54ae9d60a190*****",
 "package": "prepay_id=wx2015102711235498ade2*****",
 "signType": "MD5",
 "paySign": "BA4384AF25ACA743BD959D6*****"
 }
 },
 "description": null
}

但是我300秒后提交 提示 交易有效截止时间非法

from pingpp-html5.

samurai00 avatar samurai00 commented on July 25, 2024

微信最短有效时间间隔必须大于 5 分钟。建议不要设置正好 5 分钟。

from pingpp-html5.

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.