配置开发选项
配置开发选项(例如回调地址等)
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
callback_url | string | 商户回调地址 |
sub_mch_code | string | 子商户号 |
show_fapiao_cell | boolean | 全部账单展示开发票入口开关 |
php
$instance->v3->newTaxControlFapiao->merchant->developmentConfig->patchAsync([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/new-tax-control-fapiao/merchant/development-config')->patchAsync([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/new-tax-control-fapiao/merchant/development-config']->patchAsync([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->newTaxControlFapiao->merchant->developmentConfig->patch([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/new-tax-control-fapiao/merchant/development-config')->patch([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/new-tax-control-fapiao/merchant/development-config']->patch([
'json' => [
'callback_url' => 'https://pay.weixin.qq.com/callback',
'sub_mch_code' => '1900000109',
'show_fapiao_cell' => true,
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
callback_url | string | 商户回调地址 |
show_fapiao_cell | boolean | 全部账单展示开发票入口开关 |
参阅 官方文档
查询商户配置的开发选项
查询商户配置的开发选项
请求参数 | 类型 | 描述 |
---|
php
$instance->v3->newTaxControlFapiao->merchant->developmentConfig->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/new-tax-control-fapiao/merchant/development-config')->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/new-tax-control-fapiao/merchant/development-config']->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->newTaxControlFapiao->merchant->developmentConfig->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/new-tax-control-fapiao/merchant/development-config')->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/new-tax-control-fapiao/merchant/development-config']->get([]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
callback_url | string | 商户回调地址 |
show_fapiao_cell | boolean | 全部账单展示开发票入口开关 |
参阅 官方文档