预签约接口
一键绑卡不是支持所有银行卡,上线前请先测试是否支持该银行卡。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
business_name | string | 业务类型 |
facepay_user | object | 刷脸用户信息 |
out_user_id | string | 商户用户ID |
identification_name | string | 刷脸用户名 |
organization_id | string | 机构ID |
identification | object | 证件信息 |
identification_type | string | 证件类型IDCARD 枚举值 |
identification_number | string | 证件ID |
phone | string | 手机号码 |
limit_bank_card | object | 签约指定银行卡 |
bank_card_number | string | 银行卡号 |
identification_name | string | 开卡人姓名 |
identification | object | 开卡人证件 |
identification_type | string | 证件类型IDCARD 枚举值 |
identification_number | string | 证件ID |
valid_thru | string | 银行卡有效期 |
bank_type | string | 银行类型 |
phone | string | 开卡预留手机号 |
contract_mode | string | 签约模式LIMIT_BANK_CARD | PRIORITY_BANK_CARD | LIMIT_NONE 枚举值之一 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->offlineface->contracts->presign->postAsync([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'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/offlineface/contracts/presign')->postAsync([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'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/offlineface/contracts/presign']->postAsync([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'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->offlineface->contracts->presign->post([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/contracts/presign')->post([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/contracts/presign']->post([
'json' => [
'business_name' => '',
'facepay_user' => [
'out_user_id' => '',
'identification_name' => '',
'organization_id' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'phone' => '',
],
'limit_bank_card' => [
'bank_card_number' => '',
'identification_name' => '',
'identification' => [
'identification_type' => 'IDCARD',
'identification_number' => '',
],
'valid_thru' => '',
'bank_type' => '',
'phone' => '',
],
'contract_mode' => 'LIMIT_BANK_CARD',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
presign_token | string | 会话ID |
参阅 官方文档