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

增加退款回调处理 #931

Merged
merged 3 commits into from
Sep 20, 2017
Merged

增加退款回调处理 #931

merged 3 commits into from
Sep 20, 2017

Conversation

leo108
Copy link
Contributor

@leo108 leo108 commented Sep 20, 2017

对应文档地址: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_16

使用方法:

$app->payment->handleRefundNotify(function (Collection $notify, $successful) {
	$reqInfo = $notify->get('req_info');
	// 退款订单号 $reqInfo['out_trade_no']

	return true;
});

@overtrue overtrue merged commit 73bec90 into w7corp:3.1 Sep 20, 2017
@overtrue
Copy link
Collaborator

@tianyong90 看看加到 Master 分支 ?

@leo108 leo108 mentioned this pull request Sep 20, 2017
@tianyong90
Copy link
Contributor

代码没什么问题。不过好像少单元测试。 Github 明明开了关注项目的邮件通知,竟然没动静,刚看到……

@xngxiong
Copy link

xngxiong commented Jun 12, 2020

@tianyong90 看看加到 Master 分支 ?

对应文档地址: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_16

使用方法:

$app->payment->handleRefundNotify(function (Collection $notify, $successful) {
	$reqInfo = $notify->get('req_info');
	// 退款订单号 $reqInfo['out_trade_no']

	return true;
});

请问一下退款的回调url在什么地方配置的呢?我看refund方法并不支持传递回调url

用户通过消息或扫描二维码在微信内打开商户的H5商城网站,调用微信支付完成下单购买

@almas1992
Copy link
Contributor

almas1992 commented Jun 12, 2020

@tianyong90 看看加到 Master 分支 ?

对应文档地址: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_16
使用方法:

$app->payment->handleRefundNotify(function (Collection $notify, $successful) {
	$reqInfo = $notify->get('req_info');
	// 退款订单号 $reqInfo['out_trade_no']

	return true;
});

请问一下退款的回调url在什么地方配置的呢?我看refund方法并不支持传递回调url

**【微信支付】JSAPI支付开发者文档**用户通过消息或扫描二维码在微信内打开商户的H5商城网站,调用微信支付完成下单购买

我记得以前退款接口是没有notify_url参数的,回调地址是商户后台配置的,现在估计是微信调整了接口;

用户通过消息或扫描二维码在微信内打开商户的H5商城网站,调用微信支付完成下单购买

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

Successfully merging this pull request may close these issues.

5 participants