商户预授权
商户预授权
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
service_id | string | 服务id |
appid | string | 公众号id |
authorization_code | string | 授权协议号 |
notify_url | string | 通知地址 |
php
$instance->v3->payscore->permissions->postAsync([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'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();
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$instance->chain('v3/payscore/permissions')->postAsync([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'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();
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
php
$instance['v3/payscore/permissions']->postAsync([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'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();
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->payscore->permissions->post([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'authorization_code' => '1234323JKHDFE1243252',
'notify_url' => 'http://www.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
php
$response = $instance->chain('v3/payscore/permissions')->post([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'authorization_code' => '1234323JKHDFE1243252',
'notify_url' => 'http://www.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
php
$response = $instance['v3/payscore/permissions']->post([
'json' => [
'service_id' => '500001',
'appid' => 'wxd678efh567hg6787',
'authorization_code' => '1234323JKHDFE1243252',
'notify_url' => 'http://www.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
返回字典 | 类型 | 描述 |
---|---|---|
apply_permissions_token | string | 预授权token |