修改联系信息
请求参数 | 类型 | 描述 |
---|---|---|
xml | object | 声明请求的XML 数据结构 |
version | string | 接口版本号 |
mch_id | string | 商户号 |
sign_type | string | 签名类型 |
sub_mch_id | string | 小微商户号 |
mobile_phone | string | 手机号 |
string | 邮箱 | |
merchant_name | string | 商户简称 |
cert_sn | string | 加密的平台证书序列号 |
security | boolean | 声明加载商户API证书 固定值 true |
php
$instance->v2->applyment->micro->modifycontactinfo->postAsync([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance->chain('v2/applyment/micro/modifycontactinfo')->postAsync([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$instance['v2/applyment/micro/modifycontactinfo']->postAsync([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
})
->wait();
php
$response = $instance->v2->applyment->micro->modifycontactinfo->post([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance->chain('v2/applyment/micro/modifycontactinfo')->post([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
php
$response = $instance['v2/applyment/micro/modifycontactinfo']->post([
'xml' => [
'version' => '1.0',
'mch_id' => '1230000109',
'sign_type' => 'HMAC-SHA256',
'sub_mch_id' => '1230000109',
'mobile_phone' => '13734543456',
'email' => 'zhangsan@227.com',
'merchant_name' => '张三的小店',
'cert_sn' => '50062CE505775F070CAB06E697F1BBD1AD4F4D87',
],
'security' => true,
]);
print_r(\WeChatPay\Transformer::toArray((string) $response->getBody()));
返回字典 | 类型 | 描述 |
---|---|---|
return_code | string | 返回状态码 |
return_msg | string | 返回信息 |
nonce_str | string | 随机字符串 |
sign | string | 签名 |
result_code | string | 业务结果 |
err_code | string | 错误代码 |
err_code_des | string | 错误代码描述 |
mch_id | string | 商户号 |
sub_mch_id | string | 小微商户号 |
参阅 官方文档