Skip to content

配置及查询电子发票开发选项信息

配置开发选项

配置开发选项(例如回调地址等)

请求参数类型描述
jsonobject声明请求的JSON数据结构
callback_urlstring商户回调地址
sub_mch_codestring子商户号
show_fapiao_cellboolean全部账单展示开发票入口开关
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_urlstring商户回调地址
show_fapiao_cellboolean全部账单展示开发票入口开关

参阅 官方文档

查询商户配置的开发选项

查询商户配置的开发选项

请求参数类型描述
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_urlstring商户回调地址
show_fapiao_cellboolean全部账单展示开发票入口开关

参阅 官方文档

Published on the GitHub by TheNorthMemory