查询子商户H5支付权限状态
商户可以通过该接口查询子商户的H5支付权限状态。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/ (香港接入) |
sub_mchid | string | 子商户号 |
php
$instance->v3->global->merchant->h5->permission->_sub_mchid_->getAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
])
->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
2
3
4
5
6
7
8
php
$instance->chain('v3/global/merchant/h5/permission/{sub_mchid}')->getAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
])
->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
2
3
4
5
6
7
8
php
$instance['v3/global/merchant/h5/permission/{sub_mchid}']->getAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
])
->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
2
3
4
5
6
7
8
php
$response = $instance->v3->global->merchant->h5->permission->_sub_mchid_->get([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
2
3
4
5
php
$response = $instance->chain('v3/global/merchant/h5/permission/{sub_mchid}')->get([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
2
3
4
5
php
$response = $instance['v3/global/merchant/h5/permission/{sub_mchid}']->get([
'base_uri' => 'https://apihk.mch.weixin.qq.com/', // 接入点(香港接入)
'sub_mchid' => '2491935631',
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
2
3
4
5
返回字典 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
authorization_state | string | H5支付权限状态 |
参阅 官方文档