Cybersource
Extra data required
Cybersource expects to receive the following mandatory information in the extra_data
field when creating the order:
- First and last name
- Email address
- Address
These fields can be provided with the following structure in extra_data
:
"extra_data": {
"profile": {
"first_name": "John",
"last_name": "Doe",
"email": "johndoe@paynopain.com"
},
"address": {
"city": "Castellon",
"country": "ESP",
"address1": "Avinguda del Mar 23",
"zip_code": "12000",
"state_code": "CT"
}
}
Payment methods in Sandbox
Test cards are as follows. In general, the expiration date and CVV do not matter as long as the date is after the current date, and the CVV has 3 digits.
Result | Card | Notes |
---|---|---|
OK | 4622943127013705 12/34 123 | |
KO | 4622943127013705 12/34 123 | The amount must be >= 1000000 (10.000,00 DOP) |
Error Codes
Error codes in Cybersource follow the following structure:
Status - Reason
For example:
DECLINED - INSUFFICIENT_FUND
Status | Reason |
---|---|
AUTHORIZED | N/A |
PARTIAL_AUTHORIZED | N/A |
AUTHORIZED_PENDING_REVIEW | AVS_FAILED |
AUTHORIZED_PENDING_REVIEW | CONTACT_PROCESSOR |
DECLINED | EXPIRED_CARD |
DECLINED | PROCESSOR_DECLINED |
DECLINED | PROCESSOR_ERROR |
DECLINED | INSUFFICIENT_FUND |
DECLINED | STOLEN_LOST_CARD |
DECLINED | ISSUER_UNAVAILABLE |
DECLINED | UNAUTHORIZED_CARD |
DECLINED | CVN_NOT_MATCH |
DECLINED | EXCEEDS_CREDIT_LIMIT |
DECLINED | INVALID_CVN |
DECLINED | DECLINED_CHECK |
DECLINED | BLACKLISTED_CUSTOMER |
DECLINED | SUSPENDED_ACCOUNT |
DECLINED | PAYMENT_REFUSED |
AUTHORIZED_PENDING_REVIEW | CV_FAILED |
DECLINED | INVALID_ACCOUNT |
DECLINED | GENERAL_DECLINE |
INVALID_REQUEST | INVALID_MERCHANT_CONFIGURATION |
DECLINED | BOLETO_DECLINED |
SERVER_ERROR | PROCESSOR_TIMEOUT |
DECLINED | DEBIT_CARD_USAGE_LIMIT_EXCEEDED |
AUTHORIZED_RISK_DECLINED | SCORE_EXCEEDS_THRESHOLD |
PENDING_AUTHENTICATION | CONSUMER_AUTHENTICATION_REQUIRED |
DECLINED | CONSUMER_AUTHENTICATION_FAILED |
AUTHORIZED_PENDING_REVIEW | DECISION_PROFILE_REVIEW |
AUTHORIZED_RISK_DECLINED | DECISION_PROFILE_REJECT |
INVALID_REQUEST | MISSING_FIELD |
INVALID_REQUEST | INVALID_DATA |
INVALID_REQUEST | DUPLICATE_REQUEST |
INVALID_REQUEST | CARD_TYPE_NOT_ACCEPTED |
INVALID_REQUEST | PROCESSOR_UNAVAILABLE |
INVALID_REQUEST | INVALID_AMOUNT |
INVALID_REQUEST | INVALID_CARD_TYPE |
SERVER_ERROR | SYSTEM_ERROR |
SERVER_ERROR | SERVER_TIMEOUT |
SERVER_ERROR | SERVICE_TIMEOUT |
SERVER_ERROR | INVALID_OR_MISSING_CONFIG |