验证客户账户
若要验证客户的账户,您必须向支持的资源之一发送验证请求。
智能验证
通过智能验证,Worldpay 可选择要在验证中使用的金额。
智能验证请求
您可以在以下这些资源之一中 POST
您的智能验证请求:
oneTime
智能验证
对于 oneTime
验证,请将您的请求 POST
到在verifications:oneTime
操作链接中。
POST https://try.access.worldpay.com/verifications/accounts/intelligent/oneTime
cardOnFile
智能验证
cardOnFile
支付由客户使用已存储的支付工具详情来发起。
对于 cardOnFile
验证,请将您的请求 POST
到在verifications:cardOnFile
操作链接中,以实现持卡人启动的交易 (CIT) 合规。
POST https://try.access.worldpay.com/verifications/accounts/intelligent/cardOnFile
示例请求正文
对仅包含必填字段的 cardOnFile
和 oneTime
请求进行智能验证:
{
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd"
},
"paymentInstrument": {
"type": "card/plain",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 1,
"year": 2035
},
"cardHolderName": "Sherlock Holmes"
},
"transactionReference": "Memory265-13/08/1876"
}
{
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd"
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}"
},
"transactionReference": "Memory265-13/08/1876"
}
您的必需智能验证请求参数的描述:
参数 | 必需 | 描述 |
---|---|---|
currency | 3 位数货币代码。 请参见 | |
transactionReference | 由您生成的独特参考号,用于在支付的整个生命周期中对其进行识别。请参见 | |
paymentInstrument | 包含您的客户支付详情的对象。 | |
paymentInstrument.type | 包含您的客户支付类型的对象。可能的值:
| |
paymentInstrument.cardNumber | 包含您的客户支付卡号的对象。是 paymentInstrument card/plain 所必需的。 | |
paymentInstrument.cardExpiryDate | 包含您的客户支付卡过期日期的对象。 | |
paymentInstrument.href | 包含您的 Token 的对象。是 paymentInstrument "card/tokenized" 所必需的。 | |
merchant | 包含有关商户信息的对象。 | |
merchant.entity | 确定您验证的方向,以协助开单、报告和对账。如需更多信息,请联系您的客户关系经理或实施经理。 |
验证请求中的可选字段
对包含可选和必填字段的 cardOnFile
和 oneTime
请求进行智能验证:
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"narrative": {
"line1": "The Mind Palace Ltd",
"line2": "Memory265-13/08/1876"
},
"paymentInstrument": {
"type": "card/plain",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
},
"cvc": "321"
},
"storedCredentials": {
"reason": "recurring"
}
}
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-EXAMPLE",
"email": "contact@example.com"
}
}
},
"narrative": {
"line1": "The Mind Palace Ltd",
"line2": "Memory265-13/08/1876"
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}",
"cvc": "123"
}
}
您的可选智能验证请求参数的描述:
参数 | 必需 | 描述 |
---|---|---|
paymentInstrument.verificationAddress | 包含验证地址信息的对象。仅适用于 paymentInstrument "card/plain"。如果已包括,则您必须至少要发送:
| |
narrative | 出现在您的客户对账单上的文本。用于识别商户。 请参见 | |
narrative.line1 | 出现在您客户的对账单上的叙述文字的第一行(最多 24 个字符)。 请参见 line1 格式narrative ,则必须发送。 | |
narrative.line2 | 有关支付的其他详情,e.g. 订单号、电话号码。 | |
paymentInstrument.cardHolderName | 包含您客户姓名的对象。这不是必需字段,但建议您提供相关信息以提高授权率。如未发送,则默认值为 "Not Supplied"(未提供)。 | |
cvc | CVC 是客户卡背面上的一组 3 或 4 个数字的独特号码。在您的请求中注明 CVC 会提高 verified 的验证请求 outcome 的几率。我们的 API 会检查所提供的 CVC 是否与发卡银行留存的 CVC 匹配。 | |
merchant.mcc | 商户类别代码 (mcc ) 可应用于单个请求。仅在mcc 功能时才会提供 mcc 。如果此功能已启用但未提供,则 merchant.mcc 会默认为已配置的值。如需更多信息,请联系您的客户关系经理或实施经理。 | |
merchant.paymentFacilitator | 包含您支付服务商信息的对象。如果为必需,则您必须发送:
| |
storedCredentials | 已存储凭证是客户选择让您(作为商户)存储并用于处理未来交易的 Visa、Mastercard 或 AMEX 信息(如卡号)。 注释:此字段仅适用于 | |
storedCredentials.reason | 说明商户使用已存储凭证发起交易的原因。可能的值:
|
动态验证
我们的动态验证服务可为您提供有关验证所用金额的细化控制。
动态验证请求
您可以将您的验证请求 POST
到其中一个以下这些资源中:
dynamicOneTime
验证
对于 dynamicOneTime
验证,请将您的请求 POST
到在verifications:dynamicOneTime
操作链接中。
POST https://try.access.worldpay.com/verifications/accounts/dynamic/oneTime
dynamicCardOnFile
验证
cardOnFile
支付由客户使用已存储的支付工具详情来发起。
对于 dynamicCardOnFile
验证,请将您的请求 POST
到在verifications:dynamicCardOnFile
操作链接中,以实现持卡人启动的交易 (CIT) 合规。
POST https://try.access.worldpay.com/verifications/accounts/dynamic/cardOnFile
示例请求正文
对仅包含必填字段的 cardOnFile
和 oneTime
请求进行动态验证:
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd"
},
"instruction": {
"value": {
"currency": "GBP",
"amount": 250
},
"paymentInstrument": {
"type": "card/plain",
"cardNumber": "4444333322221111",
"cardHolderName": "Sherlock Holmes",
"cardExpiryDate": {
"month": 12,
"year": 2023
}
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd"
},
"instruction": {
"value": {
"currency": "GBP",
"amount": 250
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}"
}
}
}
您的必需动态验证请求参数的描述:
参数 | 必需 | 描述 |
---|---|---|
instruction | 包含与支付相关的所有信息的对象。 | |
value.currency | 3 位数货币代码。 请参见 | |
value.amount | 支付金额。这是一个包含小数位的整数,e.g.,如果小数位是二,则 250 就表示 2.50.您可以在我们的 | |
transactionReference | 由您生成的独特参考号,用于在支付的整个生命周期中对其进行识别。请参见 | |
instruction.paymentInstrument | 包含您的客户支付详情的对象。 | |
paymentInstrument.type | 包含您的客户支付类型的对象。可能的值:
| |
paymentInstrument.cardNumber | 包含您的客户支付卡号的对象。 | |
paymentInstrument.cardExpiryDate | 包含您的客户支付卡过期日期的对象。 | |
merchant | 包含有关商户信息的对象。 | |
merchant.entity | 确定您验证的方向,以协助开单、报告和对账。如需更多信息,请联系您的 |
验证请求中的可选字段
对包含可选和必填字段的 cardOnFile
和 oneTime
请求进行动态验证:
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"instruction": {
"value": {
"currency": "GBP",
"amount": 250
},
"narrative": {
"line1": "The Mind Palace Ltd",
"line2": "Memory265-13/08/1876"
},
"paymentInstrument": {
"type": "card/plain",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
},
"cvc": "321"
},
"storedCredentials": {
"reason": "instalment"
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"instruction": {
"value": {
"currency": "GBP",
"amount": 250
},
"narrative": {
"line1": "The Mind Palace Ltd",
"line2": "Memory265-13/08/1876"
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}",
"cvc": "123"
}
}
}
您可选的动态验证请求参数的描述:
参数 | 必需 | 描述 |
---|---|---|
paymentInstrument.cardHolderName | 包含您客户姓名的对象。这不是必需字段,但建议您提供相关信息以提高授权率。如未发送,则默认值为 "Not Supplied"(未提供)。 | |
paymentInstrument.verificationAddress | 包含验证地址信息的对象。仅适用于 paymentInstrument "card/plain"。如果已包括,则您必须至少要发送:
| |
narrative | 出现在您的客户对账单上的文本。用于识别商户。 请参见 | |
narrative.line1 | 出现在您客户的对账单上的叙述文字的第一行(最多 24 个字符)。 请参见 line1 格式narrative ,则必须发送。 | |
narrative.line2 | 有关支付的其他详情,e.g. 订单号、电话号码。 | |
paymentInstrument.cvc | CVC 是客户卡背面上的一组 3 或 4 个数字的独特号码。在您的请求中注明 CVC 会提高 verified 的验证请求 outcome 的几率。我们的 API 会检查所提供的 CVC 是否与发卡银行留存的 CVC 匹配。 | |
merchant.paymentFacilitator | 包含您支付服务商信息的对象。如果为必需,则您必须发送:
| |
storedCredentials | 已存储凭证是客户选择让您(作为商户)存储并用于处理未来交易的 Visa、Mastercard 或 AMEX 信息(如卡号)。 注释:此字段仅适用于 | |
storedCredentials.reason | 说明商户使用已存储凭证发起交易的原因。可能的值:
|
3DS
您可以选择为智能验证和动态验证请求提交 3DS 参数。
若要获得 customer
身份验证对象,您必须使用我们的
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"narrative": {
"line1": "The Mind Palace Ltd"
},
"paymentInstrument": {
"type": "card/plain",
"cvc": "321",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
}
},
"customer": {
"authentication": {
"version": "1.0.2",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"narrative": {
"line1": "The Mind Palace Ltd"
},
"paymentInstrument": {
"type": "card/plain",
"cvc": "321",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
}
},
"customer": {
"authentication": {
"version": "2.1.0",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "683001f5-3805-423a-b580-638e4b2093b3"
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd"
},
"narrative": {
"line1": "abc"
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}"
},
"customer": {
"authentication": {
"version": "1.0.2",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"currency": "GBP",
"merchant": {
"entity": "MindPalaceLtd"
},
"narrative": {
"line1": "The Mind Palace Ltd"
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}"
},
"customer": {
"authentication": {
"version": "2.1.0",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "683001f5-3805-423a-b580-638e4b2093b3"
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"instruction": {
"narrative": {
"line1": "The Mind Palace Ltd"
},
"value": {
"currency": "GBP",
"amount": 20
},
"paymentInstrument": {
"type": "card/plain",
"cvc": "321",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
}
}
},
"customer": {
"authentication": {
"version": "1.0.2",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd",
"mcc": "6012",
"paymentFacilitator": {
"pfId": "12345678901",
"isoId": "4101",
"subMerchant": {
"merchantId": "873674903278364",
"name": "Example Shop",
"street": "123 Street",
"state": "CA",
"city": "San Francisco",
"countryCode": "840",
"postalCode": "94101",
"taxId": "987-65-4321",
"telephone": "800-555-9999",
"email": "contact@example.com"
}
}
},
"instruction": {
"narrative": {
"line1": "The Mind Palace Ltd"
},
"value": {
"currency": "GBP",
"amount": 20
},
"paymentInstrument": {
"type": "card/plain",
"cvc": "321",
"cardHolderName": "Sherlock Holmes",
"cardNumber": "4444333322221111",
"cardExpiryDate": {
"month": 5,
"year": 2035
},
"verificationAddress": {
"address1": "221B Baker Street",
"countryCode": "GB",
"postalCode": "NW1 6XE",
"city": "London"
}
}
},
"customer": {
"authentication": {
"version": "2.1.0",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "683001f5-3805-423a-b580-638e4b2093b3"
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd"
},
"instruction": {
"narrative": {
"line1": "The Mind Palace Ltd"
},
"value": {
"currency": "GBP",
"amount": 20
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}}"
}
},
"customer": {
"authentication": {
"version": "1.0.2",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
{
"transactionReference": "Memory265-13/08/1876",
"merchant": {
"entity": "MindPalaceLtd"
},
"instruction": {
"narrative": {
"line1": "The Mind Palace Ltd"
},
"value": {
"currency": "GBP",
"amount": 20
},
"paymentInstrument": {
"type": "card/tokenized",
"href": "https://try.access.worldpay.com/tokens/{}}"
}
},
"customer": {
"authentication": {
"version": "2.1.0",
"type": "3DS",
"eci": "05",
"authenticationValue": "MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=",
"transactionId": "683001f5-3805-423a-b580-638e4b2093b3"
}
}
}
您的 3DS 授权请求中的参数描述
参数 | 必需 | 描述 |
---|---|---|
customer | 包含您的客户验证结果的对象。有关更多详情,请参见 | |
authentication.type | 3DS | |
authentication.version | 用于处理交易的 3DS 版本。 对于 3DS1 - 1.0.2 对于 3DS2 - 2.1.0 或 2.2.0 注释:对于授权中的 Mastercard 身份校验交易是必需的。 | |
authentication.eci | 电子商务指标 (ECI)。 表示
| |
authentication.authenticationValue | 提供 3DS 验证结果证据的密码值。
authentication.authenticationValue 是必需的 - 如果 authentication.eci 值为 01、02 或 05。对于版本 3DS2: authentication.authenticationValue 是必需的 - 如果 authentication.eci 值是 01、02、05 或 06。authentication.authenticationValue 必须最多 28 位,并且必须采用 base64 编码。 | |
authentication.transactionId | 是必需的 - 如果 authentication.eci 值为 01、02、05 或 06。由发行机构生成的独特身份验证交易识别码。 对于版本 3DS1: transactionId 必须为 base64 编码且长度为 28 位数。对于版本 3DS2: transactionId 必须为 UUID 且长度为 36 个字符。 |
Apple Pay 解码
您可以选择为智能和动态 cardOnFile
请求提交 Apple Pay 解码参数。
验证请求示例:
{
"currency":"EUR",
"paymentInstrument":{
"type":"card/networkToken+applepay",
"cardHolderName":"Sherlock Holmes",
"cardExpiryDate":{
"month":1,
"year":2019
},
"dpan":"4444333322221111"
},
"narrative":{
"line1":"The Mind Palace Ltd",
"line2":"Memory265-13/08/1876"
},
"merchant":{
"entity":"MindPalaceLtd"
},
"transactionReference":"Memory265-13/08/1876",
"customer":{
"authentication":{
"type":"card/networkToken",
"eci":"05",
"authenticationValue":"MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
{
"merchant":{
"entity":"MindPalaceLtd"
},
"transactionReference":"Memory265-13/08/1876",
"instruction":{
"value":{
"amount":100,
"currency":"GBP"
},
"paymentInstrument":{
"type":"card/networkToken+applepay",
"cardHolderName":"Sherlock Holmes",
"cardExpiryDate":{
"month":1,
"year":2019
},
"dpan":"4444333322221111"
},
"narrative":{
"line1":"The Mind Palace Ltd",
"line2":"Memory265-13/08/1876"
}
},
"customer":{
"authentication":{
"type":"card/networkToken",
"eci":"05",
"authenticationValue":"MTIzNDU2Nzg5MDEyMzQ1Njc4OTA="
}
}
}
您的 Apple Pay 解码授权请求中的参数描述
参数 | 必需 | 描述 |
---|---|---|
paymentInstrument.type | 包含您的客户支付类型的对象;card/networkToken+applepay 。 | |
paymentInstrument.dpan | 包含设备主账号的对象。 | |
customer | 包含 Apple Pay 解码所需的身份验证信息的对象。 | |
authentication.type | card/networkToken | |
authentication.eci | 电子商务指标 (ECI)。 表示 Apple Pay 解码响应中所含的值。 | |
authentication.authenticationValue | 提供 Apple Pay 解码验证结果证据的密码值。 |
重要信息:我们目前在响应中不为该 paymentInstrument
返回操作链接。此功能仍在开发之中。与此同时,您可以使用我们的 payments:migrateCardOnFileAuthorize
操作链接来
验证响应
您会接收到:
最佳实践:Access Worldpay 在服务响应的头文件中返回WP-CorrelationId
。我们强烈建议您将此记录下来。我们使用WP-CorrelationId
检查单个服务请求。
201
HTTP 响应代码- 验证
outcome
(verified
或not verified
) 发卡机构响应代码和描述 (not verified
仅结果)schemeTransactionReference
仅适用于预存卡号 (并非所有发卡机构都会返回此信息)riskFactors - A
paymentInstrument
注释:至少包含请求中发送的 paymentInstrument.type
的 paymentInstrument
。如果您想收到更多银行卡元数据,则必须启用此功能。有关更多信息,请联系您的实施经理。
{
"outcome": "verified",
"checkedAt": "2018-09-01T10:37:36.923Z",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"curies": [{
"name": "verifications",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
{
"outcome": "verified",
"checkedAt": "2019-11-01T10:37:36.923Z",
"schemeTransactionReference": "000000000000020005060720116005060",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"payments:cardonFileAuthorize": {
"href": "https://try.access.worldpay.com/payments/authorizations/cardonFile/{resource}"
},
"payments:recurringAuthorize": {
"href": "http://try.access.worldpay.com/payments/authorizations/recurring/{resource}"
},
"payments:recurringSale": {
"href": "https://try.access.worldpay.com/payments/sales/recurring/{resource}"
},
"curies": [{
"name": "verifications:verification",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
{
"outcome": "verified",
"checkedAt": "2018-09-01T10:37:36.923Z",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"paymentInstrument": {
"type": "card/plain",
"card": {
"number": {
"bin": "444433",
"last4Digits": "1111"
},
"countryCode": "GB",
"expiryDate": {
"month": 12,
"year": 2029
},
"brand": "visa",
"fundingType": "debit",
"issuer": {
"name": "cardIssuer"
},
"category": "consumer",
"paymentAccountReference": "reference"
}
},
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"curies": [{
"name": "verifications",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
{
"outcome": "not verified",
"code": "106",
"description": "INVALID ACCOUNT",
"refusalAdvice": {
"code":"04"
},
"checkedAt": "2019-11-01T10:37:36.923Z",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"curies": [{
"name": "verifications:verification",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
参数 checkedAt
包含显示验证何时执行的时间戳以及验证地点信息,以备未来查询。
最佳实践:如果您收到了 not verified
的 outcome
,则意味着您的客户未通过验证。我们强烈建议您拒绝通过此种支付工具进行的支付。
操作链接(资源) | 描述 |
---|---|
verifications:verification | 显示您验证请求结果的链接。 |
payments:recurringAuthorize | 重复性协议中的后续支付。此资源将作为成功verifications:cardOnFile verifications:dynamicCardOnFile payments:migrateRecurringAuthorize |
payments:CardOnFileAuthorize | 预存卡号协议中的后续支付。该资源只会作为成功verifications:cardOnFile verifications:dynamicCardOnFile payments:migrateCardOnFileAuthorize |
payments:recurringSale | 重复性协议中的后续支付。此资源仅会作为成功verifications:cardOnFile verifications:dynamicCardOnFile |
注释:如果出现错误,您可以在我们的
风险因素
我们建议您提供 cvc
和 verificationAddress
以提高成功验证的概率。
下表描述了响应参数:
参数 | 描述 |
---|---|
riskFactors.type | 返回 avs 或 cvc |
riskFactors.detail | 仅限 avs 。返回 postcode 或 address |
riskFactors.risk | 返回 not_checked 、not_matched 、not_supplied 或 matched |
支付工具
如果您启用了元数据功能,则我们只会返回 paymentInstrument
卡元数据。
下表描述了响应参数:
参数 | 描述 |
---|---|
paymentInstrument.type | 返回在您的请求中提供的 paymentInstrument.type 。可以是 card/plain 或 card/tokenized 。 |
paymentInstrument.card | 包含请求中提供的卡/Token 的所有附加元数据的对象。 |
paymentInstrument.card.number | 包含卡的 bin 和 last4Digits 的对象。 |
paymentInstrument.card.countryCode | 发卡机构的国家/地区代码。 |
paymentInstrument.card.expiryDate | 包含您的客户支付卡过期日期的对象。 |
paymentInstrument.card.brand | 银行卡方案,e.g. visa 或 mastercard 。 |
paymentInstrument.card.fundingType | 可以是 debit 或 credit |
paymentInstrument.card.issuer.name | 发卡机构的名称。 |
paymentInstrument.card.paymentAccountReference | 与卡 PAN 关联的独特参考号。 |
地点存储
您必须存储返回的地点信息。未能存储地点信息意味着验证结果丢失。您无法查询历史验证数据。
地点存储在您的verifications:verification
操作链接的 href
中。
最佳实践:我们建议您存储所有响应。
查询历史验证
若要查询历史验证,可向在您的
查询验证请求
GET https://try.access.worldpay.com/verifications/accounts/{resource}
您可以查询在outcome
。您只能从
查询验证响应
在您的响应中是 200
HTTP 响应代码和验证的历史 outcome
。
outcome
:
verified
not verified
{
"outcome": "verified",
"checkedAt": "2018-09-01T10:37:36.923Z",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"curies": [{
"name": "verifications",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
{
"outcome": "verified",
"checkedAt": "2019-11-01T10:37:36.923Z",
"schemeTransactionReference": "000000000000020005060720116005060",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"payments:cardonFileAuthorize": {
"href": "https://try.access.worldpay.com/payments/authorizations/cardonFile/{resource}"
},
"payments:recurringAuthorize": {
"href": "http://try.access.worldpay.com/payments/authorizations/recurring/{resource}"
},
"payments:recurringSale": {
"href": "https://try.access.worldpay.com/payments/sales/recurring/{resource}"
},
"curies": [{
"name": "verifications:verification",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}
{
"outcome": "not verified",
"code": "106",
"description": "INVALID ACCOUNT",
"refusalAdvice": {
"code":"04"
},
"checkedAt": "2019-11-01T10:37:36.923Z",
"riskFactors": [{
"risk": "matched",
"type": "cvc"
},
{
"risk": "matched",
"detail": "postcode",
"type": "avs"
},
{
"risk": "matched",
"detail": "address",
"type": "avs"
}
],
"_links": {
"verifications:verification": {
"href": "https://try.access.worldpay.com/verifications/accounts/{resource}"
},
"curies": [{
"name": "verifications:verification",
"href": "https://try.access.worldpay.com/rels/verifications/accounts/{rel}",
"templated": true
}]
}
}