Pesquisar

Are you looking for test card numbers?

Would you like to contact support?

Atenção, esta página não se encontra disponível em Português
Developer-resource icon

Test CVC-CVV result codes

To test CVC/CVV results, use one of the test cards provided by Adyen: Test card numbers.

You can test CVC/CVV result codes. Assign the appropriate values to the child elements of the card element, as described below:

  • card.number – A number of the card to test.
  • card.cvc – A CVC value that you want to test. Use two padding zeroes before the CVC-CVV code.

You still need to include and define all the other card child elements, but their values do not impact the cvc return value you want to test.

CVC-CVV result codes

0 Unknown
1 Matches
2 Doesn't match
3 Not checked
4 No CVC/CVV provided, but was required
5 Issuer not certified for CVC/CVV
6 No CVC/CVV provided

Code examples

The following example shows how to use the card element to test CVC/CVV result code 4:

Request

{  
  "card":{  
    "number":"4111111111111111",
    "cvc":"004",
    "expiryMonth":"06",
    "expiryYear":"2018",
    "holderName":"Adyen Test"
  }
}
<card xmlns="http://payment.services.adyen.com">
  <cvc>004</cvc>
  <expiryMonth>06</expiryMonth>
  <expiryYear>2018</expiryYear>
  <holderName>Adyen Test</holderName>
  <number>4111111111111111</number>
</card> 

Response

{  
  "additionalData":{  
    "cvcResult":"4 No CVC/CVV provided, but was required",
    "cvcResultRaw":"S",
    "refusalReasonRaw":"DECLINED CVC Incorrect"
  },
  "pspReference":"9914613171800003",
  "refusalReason":"Refused",
  "resultCode":"Refused"
}
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://payment.services.adyen.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <ns1:authoriseResponse>
      <ns1:paymentResult>
        <ns1:additionalData>
          <ns1:entry>
            <ns1:key xsi:type="xsd:string">cvcResult</ns1:key>
            <ns1:value xsi:type="xsd:string">4 No CVC/CVV provided, but was required</ns1:value>
          </ns1:entry>
          <ns1:entry>
            <ns1:key xsi:type="xsd:string">cvcResultRaw</ns1:key>
            <ns1:value xsi:type="xsd:string">S</ns1:value>
          </ns1:entry>
          <ns1:entry>
            <ns1:key xsi:type="xsd:string">refusalReasonRaw</ns1:key>
            <ns1:value xsi:type="xsd:string">DECLINED CVC Incorrect</ns1:value>
          </ns1:entry>
        </ns1:additionalData>
        <ns1:pspReference>9914613174950342</ns1:pspReference>
        <ns1:refusalReason>Refused</ns1:refusalReason>
        <ns1:resultCode>Refused</ns1:resultCode>
      </ns1:paymentResult>
    </ns1:authoriseResponse>
  </soap:Body>
</soap:Envelope>

See also