Skip to content

从业机构预授权

从业机构预授权

请求参数类型描述
jsonobject声明请求的JSON数据结构
service_idstring服务ID
channel_idstring渠道商商户号
appidstring服务商应用ID
sub_appidstring子商户应用ID
sub_mchidstring子商户号
authorization_codestring授权协议号
notify_urlstring商户回调地址
php
$instance->v3->payscore->acquiringbank->permissions->postAsync([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/acquiringbank/permissions')->postAsync([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/acquiringbank/permissions']->postAsync([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->acquiringbank->permissions->post([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/acquiringbank/permissions')->post([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/acquiringbank/permissions']->post([
  'json' => [
    'service_id'         => 'service_id',
    'channel_id'         => '1230000109',
    'appid'              => 'wxd678efh567hg6787',
    'sub_appid'          => 'wxd678efh567hg6787',
    'sub_mchid'          => '1230000109',
    'authorization_code' => '1234323JKHDFE1243252',
    'notify_url'         => 'http://www.qq.com',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
apply_permissions_tokenstring预授权token

参阅 官方文档

Published on the GitHub by TheNorthMemory