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

微信支付回调问题 #16

Open
dawei101 opened this issue Mar 22, 2021 · 6 comments
Open

微信支付回调问题 #16

dawei101 opened this issue Mar 22, 2021 · 6 comments

Comments

@dawei101
Copy link

微信支付的回调接口文档 关键字 trade_state 在你的代码里没有任何体现,你是怎么判断支付成功的?

交易状态 trade_state string[1,32] 交易状态,枚举值:SUCCESS:支付成功REFUND:转入退款NOTPAY:未支付CLOSED:已关闭REVOKED:已撤销(付款码支付)USERPAYING:用户支付中(付款码支付)PAYERROR:支付失败(其他原因,如银行返回失败)示例值:SUCCESS
@milkbobo
Copy link
Owner

在WeChatWebCallback方法的TradeState字段

@dawei101
Copy link
Author

需要自己调 WachatQueryOrder ?

@milkbobo
Copy link
Owner

不需要,返回字段已包含TradeState字段

@dawei101
Copy link
Author

返回的结构体没有TradeState字段,请double check一下。

@milkbobo
Copy link
Owner

抱歉,这是新字段,本人最近很忙,没时间兼容,可以的话请提pull requests。

@dawei101
Copy link
Author

reopen issue,等有愿意改的人来改吧

@milkbobo milkbobo reopened this Mar 25, 2021
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

2 participants