No momento, esta página não está disponível em português
Tools-2 icon

Test cards API reference

To communicate with the Adyen API you should submit HTTP POST requests to corresponding endpoints. These endpoints differ for test and live accounts, and also depend on the data format (SOAP, JSON, or FORM) you use to submit data to the plataforma de pagamentos da Adyen.

This document lists all endpoints available for you to integrate with the test platform and run QA checks.

Indicators used in this section:

-white_check_mark- This field is mandatory and must be always present.
-x- This field is optional and may be required in specific scenarios.

Endpoints

SOAP

For the SOAP messaging protocol, all test payment requests must be posted to the following endpoint:

The data schema for corresponding SOAP objects is available at:

JSON and FORM

This is an overview of the test URL endpoints to communicate with our API using JSON or FORM (key-value parameters passed in an Http POST URL).

POST https://pal-test.adyen.com/pal/services/TestCard/v1/createTestCardRanges

AvsAddress

 

FieldTypeRequiredDescription
streetAddress String-white_check_mark-

Billing address of the cardholder.

Example: 1 Infinite Loop, Cupertino

zip String-x-

Zip code associated with the billing address of the cardholder.

Example: CA 95014

CreateTestCardRangesRequest

 

FieldTypeRequiredDescription
accountCodeString-white_check_mark-The merchant account details used to log in and access the account.
accountTypeCodeString-white_check_mark-

The type of account used to make the call.

Possible values:

  • Company
  • MerchantAccount

These values are case-sensitive.

testCardRangesArray of TestCardRange-white_check_mark-Contains one or more test card range objects.

CreateTestCardRangesResult

Field Type Required Description
rangeCreationResults Array of TestCardRangeCreationResult -white_check_mark- Contains one or more test card range result outputs.

TestCardRange

Defines the properties of a test card range. 

FieldTypeRequiredDescription
addressAvsAddress-white_check_mark-Contains the billing address of the cardholder. The address details need to be AVS (Address Verification Service) compliant, i.e. you need to define at least streetAddress.
cardHolderNameString-white_check_mark-

The name of the cardholder, as it appears on the card, for the test card range.

Example: S Hopper

cvcString-white_check_mark-

The test card range security code.

Example: 123

expiryMonth String-white_check_mark-

Expiry month for the test card range.

Allowed values: 

  • JANUARY
  • FEBRUARY
  • MARCH
  • APRIL
  • MAY
  • JUNE
  • JULY
  • AUGUST
  • SEPTEMBER
  • OCTOBER
  • NOVEMBER
  • DECEMBER
expiryYear String -white_check_mark-

Expiry year for the test card range.

Example: 2020

rangeEndString-white_check_mark-

The last test card number in the test card range: 

  • Min 6, max 19 digits
  • BIN compliant

Example: 5432123412344321

rangeStartString-white_check_mark-

 The first test card number in the test card range:

  • Min 6, max 19 digits
  • BIN compliant

Example: 5432123412341234

threeDUserNameString-x-

3D Secure user name details of the cardholder.

Example: simonhopper

threeDPasswordString-x-

3D Secure password details of the cardholder.

Example: myPa$$w0rd

threeDDirectoryServerResponseString-x-

3D Secure server response. It notifies whether the specified cardholder is enrolled in a 3D Secure service. Possible values:

  • Y (Authentication available)
  • N (Card holder not enrolled/not participating)
  • U (Unable to authenticate)

TestCardRangeCreationResult

Contains a test card range result output.

FieldTypeRequiredDescription
 cardNumberRangeStart String-white_check_mark-

The first test card number in the generated test card range.

Example: 5432123412341234

 cardNumberRangeEnd String-white_check_mark-

The last test card number in the generated test card range.

Example: 5432123412344321

 creationResultCode String-white_check_mark-

Notification message. It informs about the outcome of the operation. Possible values:

  • CREATED
  • ALREADY_EXISTS
  • ERROR