Comments (4)
if params[:trade_status] == 'TRADE_FINISHED'
这个判断加上以后以上两种就都不能创建 transaction,亦即该两种情况的用户的所有支付操作,都会被忽略。
这个是我想要的吗?
d2dc6d0 有了这个修改,只有付款成功了,我这边才会创建交易记录。
另外就是付款之前,务必提醒买家一定要用“即使收款”
这样就差不多够用了。
from alipay_dualfun_demo.
PDF:7.3 通知触发条件
可以看到,异步通知在很多情况下都会被触发,但是只有一部分情况下,我是收到了钱的。所以我要做的是判读出钱确实已经到手的是哪几种情况。
首先要注意的是:异步通知在 WAIT_USER_PAY
的状态下就会被触发。
from alipay_dualfun_demo.
7.4
担保交易的交易状态变更顺序依次是:WAIT_BUYER_PAY→ WAIT_SELLER_SEND_GOODS → WAIT_BUYER_CONFIRM_GOODS → TRADE_FINISHED。
␣ 即时到账的交易状态变更顺序依次是:WAIT_BUYER_PAY→ TRADE_FINISHED。
from alipay_dualfun_demo.
看来不能用担保交易了
因为如果运行这种方式,即使首次用户成功付款,亦必须经过:
- 我去支付宝上手动去点“发货”
- 用户也要去支付报上手动去点 “确认收货”
这样钱才能真正到我账户,否则会回灌。
from alipay_dualfun_demo.
Related Issues (12)
- error: illegal sign HOT 2
- 功能简单,封装太多,开坦克去买菜了
- 异步请求乱码
- 迁移到新的服务器,同时把 rails 版本升级 HOT 3
- 担保交易 HOT 1
- 同步和异步 HOT 1
- 提出 request 之后,alipay 给出的各种错误 HOT 2
- 个人如何申请双功能收款 HOT 3
- 为何不用 activemerchant_patch_for_china(APFC)
- 记录付款用户身份 HOT 1
- 防止第三方伪造通知 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alipay_dualfun_demo.