身份信息校验
该接口用于商户上传用户身份信息,微信支付会重新校验返回订购人和支付人身份信息校验结果,用于商户纠正报关订单里的信息。
请求参数 | 类型 | 描述 |
---|---|---|
base_uri | string | 声明接入点https://apihk.mch.weixin.qq.com/global/ (香港接入) |
json | object | 声明请求的JSON 数据结构 |
appid | string | 机构APPID |
mchid | string | 商户号 |
out_trade_no | string | 商户订单号 |
transaction_id | string | 微信订单号 |
sub_order_no | string | 商户子订单号 |
customs | string | 海关 |
merchant_customs_no | string | 商户海关备案号 |
certificate_type | string | 证件类型 |
certificate_id | string | 证件号 |
certificate_name | string | 证件姓名 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->customs->verifyCertificate->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/customs/verify-certificate')->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/customs/verify-certificate']->postAsync([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->customs->verifyCertificate->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/customs/verify-certificate')->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/customs/verify-certificate']->post([
'base_uri' => 'https://apihk.mch.weixin.qq.com/global/', // 接入点(香港接入)
'json' => [
'appid' => 'wxd678efh567hg6787',
'mchid' => '1230000109',
'out_trade_no' => '20150806125346',
'transaction_id' => '1000320306201511078440737890',
'sub_order_no' => '20150806125346',
'customs' => 'SHANGHAI_ZS',
'merchant_customs_no' => '123456',
'certificate_type' => 'IDCARD',
'certificate_id' => 'Rsa::encrypt(0101211X, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
'certificate_name' => 'Rsa::encrypt(张三, WechatpayPlatformCertificateInstance, OPENSSL_PKCS1_PADDING)',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 机构APPID |
mchid | string | 商户号 |
out_trade_no | string | 商户订单号 |
transaction_id | string | 微信订单号 |
certificate_check_result | string | 身份核验结果 |
参阅 官方文档