Skip to content

查询子商户H5支付权限状态

商户可以通过该接口查询子商户的H5支付权限状态。

请求参数类型描述
base_uristring声明接入点https://apihk.mch.weixin.qq.com/(香港接入)
sub_mchidstring子商户号
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();
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();
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();
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));
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));
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));
返回字典类型描述
sub_mchidstring子商户号
authorization_statestringH5支付权限状态

参阅 官方文档

Published on the GitHub by TheNorthMemory