Skip to main content

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.

ResultCardNotes
OK4622943127013705 12/34 123
KO4622943127013705 12/34 123The 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
StatusReason
AUTHORIZEDN/A
PARTIAL_AUTHORIZEDN/A
AUTHORIZED_PENDING_REVIEWAVS_FAILED
AUTHORIZED_PENDING_REVIEWCONTACT_PROCESSOR
DECLINEDEXPIRED_CARD
DECLINEDPROCESSOR_DECLINED
DECLINEDPROCESSOR_ERROR
DECLINEDINSUFFICIENT_FUND
DECLINEDSTOLEN_LOST_CARD
DECLINEDISSUER_UNAVAILABLE
DECLINEDUNAUTHORIZED_CARD
DECLINEDCVN_NOT_MATCH
DECLINEDEXCEEDS_CREDIT_LIMIT
DECLINEDINVALID_CVN
DECLINEDDECLINED_CHECK
DECLINEDBLACKLISTED_CUSTOMER
DECLINEDSUSPENDED_ACCOUNT
DECLINEDPAYMENT_REFUSED
AUTHORIZED_PENDING_REVIEWCV_FAILED
DECLINEDINVALID_ACCOUNT
DECLINEDGENERAL_DECLINE
INVALID_REQUESTINVALID_MERCHANT_CONFIGURATION
DECLINEDBOLETO_DECLINED
SERVER_ERRORPROCESSOR_TIMEOUT
DECLINEDDEBIT_CARD_USAGE_LIMIT_EXCEEDED
AUTHORIZED_RISK_DECLINEDSCORE_EXCEEDS_THRESHOLD
PENDING_AUTHENTICATIONCONSUMER_AUTHENTICATION_REQUIRED
DECLINEDCONSUMER_AUTHENTICATION_FAILED
AUTHORIZED_PENDING_REVIEWDECISION_PROFILE_REVIEW
AUTHORIZED_RISK_DECLINEDDECISION_PROFILE_REJECT
INVALID_REQUESTMISSING_FIELD
INVALID_REQUESTINVALID_DATA
INVALID_REQUESTDUPLICATE_REQUEST
INVALID_REQUESTCARD_TYPE_NOT_ACCEPTED
INVALID_REQUESTPROCESSOR_UNAVAILABLE
INVALID_REQUESTINVALID_AMOUNT
INVALID_REQUESTINVALID_CARD_TYPE
SERVER_ERRORSYSTEM_ERROR
SERVER_ERRORSERVER_TIMEOUT
SERVER_ERRORSERVICE_TIMEOUT
SERVER_ERRORINVALID_OR_MISSING_CONFIG