Skip to content

银行特约商户信息修改

1.目前支持修改简称和客服电话,子商户修改资料成功后,需要隔30天后才能修改。2.商户简称是用户支付界面显示的商户名,必须是能清楚标识某个商户,不能乱传。

请求参数类型描述
securitytrue声明加载商户API证书
noncelesstrue声明请求的XML无随机字符串参数
xmlobject声明请求的XML数据结构
mch_idstring商户号
sub_mch_idstring商户识别码
merchant_shortnamestring商户简称
service_phonestring客服电话
php
$instance->v2->secapi->mch->modifymchinfo->postAsync([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/secapi/mch/modifymchinfo')->postAsync([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/secapi/mch/modifymchinfo']->postAsync([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->secapi->mch->modifymchinfo->post([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/secapi/mch/modifymchinfo')->post([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/secapi/mch/modifymchinfo']->post([
  'security' => true,
  'nonceless' => true,
  'xml' => [
    'mch_id'             => '1230000109',
    'sub_mch_id'         => '11111111',
    'merchant_shortname' => '商户简称',
    'service_phone'      => '075586010000',
  ],
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典类型描述
return_codestring返回状态码
SUCCESS | FAIL 枚举值之一
return_msgstring返回信息
result_codestring处理结果
SUCCESS | FAIL 枚举值之一
result_msgstring处理信息
signstring签名
err_codestring错误代码
err_code_desstring错误代码描述
nonce_strstring随机字符串

参阅 官方文档

Published on the GitHub by TheNorthMemory