银行特约商户信息修改
1.目前支持修改简称和客服电话,子商户修改资料成功后,需要隔30天后才能修改。2.商户简称是用户支付界面显示的商户名,必须是能清楚标识某个商户,不能乱传。
请求参数 | 类型 | 描述 |
---|---|---|
security | true | 声明加载商户API证书 |
nonceless | true | 声明请求的XML 无随机字符串参数 |
xml | object | 声明请求的XML 数据结构 |
mch_id | string | 商户号 |
sub_mch_id | string | 商户识别码 |
merchant_shortname | string | 商户简称 |
service_phone | string | 客服电话 |
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_code | string | 返回状态码SUCCESS | FAIL 枚举值之一 |
return_msg | string | 返回信息 |
result_code | string | 处理结果SUCCESS | FAIL 枚举值之一 |
result_msg | string | 处理信息 |
sign | string | 签名 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
nonce_str | string | 随机字符串 |
参阅 官方文档