当我尝试在保管库上的沙箱帐户上添加示例信用卡编号时,请添加低于错误。这是请求JSON{"编号":" 4769424246660779","类型":"签证"," Expire_Month":11," Expire_Year":2018," CVV2":" 0123"}
响应代码:400错误响应:{" name":" validation_error"," debug_id":" c7f1d5bd16eef","消息":"无效请求 - 请参阅详细信息 - neivers_link"," inoverle_link":" https:" https://devactioner。paypal.com/docs/api/#validation_error","details": [{"field":"number","rissue":"value无效'}]}
{" name":" validation_error"," debug_id":" c7f1d5bd16eef","消息":"无效请求 - 请参阅详细信息"," inovery_link":" https://https://developer.payplace..paypal.com/docs/api/api/api/api/api-papi-api/api-api-papi opert ofer/#valivation_error","详细信息:[{" field":" number"," essut":" value is In Invalid"}]}
信用卡号具有称为luhn算法的算法,您的样本卡号与此计算不匹配。
您也可以在线检查。http://www.freeformatter.com/credit-card-number-generator-validator.html
以下是一些样本信用卡号,可用于测试:
Visa: 4111111111111111
Visa: 4012888888881881
Visa: 4222222222222
JCB: 3530111333300000
JCB: 3566002020360505
JCB: 3088000000000009
MasterCard: 5555555555554444
MasterCard: 5105105105105100
MasterCard: 5500000000000004
American Express: 378282246310005
American Express: 371449635398431
American Express: 340000000000009
American Express Corporate: 378734493671000
Australian BankCard: 5610591081018250
Diners Club: 30569309025904
Diners Club: 38520000023237
Diners Club: 30000000000004
Discover: 6011111111111117
Discover: 6011000990139424
Discover: 6011000000000004
Carte Blanche: 30000000000004