申请免确认收款授权
商户调用该接口申请免确认收款授权,用户需在24小时内完成授权,过期未完成需更换单号重新操作。注:单个商户的接口频率限制为50次/s
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
out_authorization_no | string | 商户侧授权单号 |
appid | string | 商户AppID |
openid | string | 收款用户OpenID |
transfer_scene_id | string | 转账场景ID1000 | 1002 | 1004 | 1005 | 1009 | 1010 | 1011 | 1013 枚举值之一 |
user_display_name | string | 用户展示名称 |
user_recv_perception | string | 用户收款感知 |
authorization_notify_url | string | 授权结果通知地址 |
php
$instance->v3->fundApp->mchTransfer->userConfirmAuthorization->postAsync([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance->chain('v3/fund-app/mch-transfer/user-confirm-authorization')->postAsync([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$instance['v3/fund-app/mch-transfer/user-confirm-authorization']->postAsync([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
php
$response = $instance->v3->fundApp->mchTransfer->userConfirmAuthorization->post([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance->chain('v3/fund-app/mch-transfer/user-confirm-authorization')->post([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$response = $instance['v3/fund-app/mch-transfer/user-confirm-authorization']->post([
'json' => [
'out_authorization_no' => 'plfk2020042013',
'appid' => '102022609',
'openid' => 'o-MYE42l80oelYMDE34nYD456Xoy',
'transfer_scene_id' => '1000',
'user_display_name' => 'wx_123456',
'user_recv_perception' => '现金奖励',
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
返回字典 | 类型 | 描述 |
---|---|---|
out_authorization_no | string | 商户侧授权单号 |
state | string | 单据状态WAIT_USER_CONFIRM 枚举值 |
create_time | string | 单据创建时间 |
package_info | string | 跳转领取页面的package信息 |
参阅 官方文档