Giter Site home page Giter Site logo

Comments (4)

happypeter avatar happypeter commented on June 22, 2024

if params[:trade_status] == 'TRADE_FINISHED' 这个判断加上以后以上两种就都不能创建 transaction,亦即该两种情况的用户的所有支付操作,都会被忽略。

这个是我想要的吗?

d2dc6d0 有了这个修改,只有付款成功了,我这边才会创建交易记录。
另外就是付款之前,务必提醒买家一定要用“即使收款”
这样就差不多够用了。

from alipay_dualfun_demo.

happypeter avatar happypeter commented on June 22, 2024

PDF:7.3 通知触发条件

可以看到,异步通知在很多情况下都会被触发,但是只有一部分情况下,我是收到了钱的。所以我要做的是判读出钱确实已经到手的是哪几种情况。

首先要注意的是:异步通知在 WAIT_USER_PAY 的状态下就会被触发。

from alipay_dualfun_demo.

happypeter avatar happypeter commented on June 22, 2024

7.4
担保交易的交易状态变更顺序依次是:WAIT_BUYER_PAY→ WAIT_SELLER_SEND_GOODS → WAIT_BUYER_CONFIRM_GOODS → TRADE_FINISHED。
␣ 即时到账的交易状态变更顺序依次是:WAIT_BUYER_PAY→ TRADE_FINISHED。

from alipay_dualfun_demo.

happypeter avatar happypeter commented on June 22, 2024

看来不能用担保交易了

因为如果运行这种方式,即使首次用户成功付款,亦必须经过:

  1. 我去支付宝上手动去点“发货”
  2. 用户也要去支付报上手动去点 “确认收货”

这样钱才能真正到我账户,否则会回灌。

from alipay_dualfun_demo.

Related Issues (12)

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.