Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于PHP后端支付检测的问题 #78

Open
axaxq112 opened this issue Mar 9, 2020 · 4 comments
Open

关于PHP后端支付检测的问题 #78

axaxq112 opened this issue Mar 9, 2020 · 4 comments

Comments

@axaxq112
Copy link

axaxq112 commented Mar 9, 2020

第一个问题:不能支持微信很尴尬,支付宝已经很好了。
第二个问题:自己用PHP写的后端 在前端自助发货页面 每秒检测是否发货 如果用SQL来查询数据库是否存在记录XX用户下单是可以,但是只能单商品,页面提交不能带一个回调id很难受,多商品无法区分,只能单一支付宝单一商品 售卖,二次购买会直接发货不需要付款 因为 SQL查询到了 用户购买的记录 (支付宝昵称),希望可以改进出一个唯一支付ID 可以先行提交给receiptnotice APP ID在判断 120秒内该用户是否支付,若超时回调服务器,单一回调只能记录 谁 时间 名字 金额 内容 不能搞多商品区分,也提取不到支付宝官方的订单(支付)号。

不知道你看懂我说的了吗,最好能回复一下 谢谢Thanks♪(・ω・)

@axaxq112
Copy link
Author

axaxq112 commented Mar 9, 2020

求回复,谢谢 我的邮箱:2173015288@qq.com 或者 你在issues里回复谢谢

@WeihuaGu
Copy link
Collaborator

WeihuaGu commented Mar 9, 2020

第二个问题用转账码的备注

@WeihuaGu
Copy link
Collaborator

WeihuaGu commented Mar 9, 2020

第一个问题,还在尴尬中

@sportgirl45
Copy link

第二个问题,如果你在用订单金额查询扫码支付log表,那可能就会导致两个同样金额的订单扫描到同一个扫码支付的记录,使得这两个订单都支付成功。建议你这样做,第一就是平台设置优惠价,使得2小时内的任何订单金额都不一致,然后在订单中只查询2小时内的订单;第二当你查到支付记录后,把订单标记为已付款的同时,把扫码支付log表的对应记录也绑定订单id,这样下次再搜索这条记录就会知道这条支付记录是别的订单的了。 关于第一点,我的微信支付记录是可以抓取并post到网站的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants