Adyen / adyen-openapi

OpenAPI specification for the Adyen APIs
MIT License
67 stars 50 forks source link

Cvc Required Error for Payments with CardOnFile #47

Closed pof-milesmcleod closed 1 year ago

pof-milesmcleod commented 1 year ago

Describe the bug When I try to make a card payment with a token in the API explorer (Checkout v70) for a CardOnFile it fails, saying "Required field 'cvc' is not provided".

To Reproduce Steps to reproduce the behavior:

  1. Go to Adyen API Explorer for Checkout v70 -> Payments -> POST /payments (https://docs.adyen.com/api-explorer/Checkout/70/post/payments)
  2. Under Request select Make a card payment with a token but change recurringProcessingModel value to CardOnFile
  3. Hit Run
  4. Check the response:
    {
    "status": 422,
    "errorCode": "14_029",
    "message": "Required field 'cvc' is not provided.",
    "errorType": "validation",
    "pspReference": "KXFFJH66FJHKGK82"
    }

Expected behavior I expect the payment to be successful, as it is in Checkout API v69

Screenshots Checkout API v69: image CheckoutAPI v70: image

Desktop (please complete the following information):

Additional context I didn't see anything about cvc being required for CardOnFile payments in the migration guide or release notes so I'm assuming this is a bug. If I'm wrong please let me know and close this issue. Thanks!

AlexandrosMor commented 1 year ago

Hello @pof-milesmcleod,

Thank you for reporting this issue, I was able to reproduce that. I will check with the team about this one and let you know

kind regards, Alexandros Adyen

AlexandrosMor commented 1 year ago

Hello @pof-milesmcleod

This issue is because of configuration in our Customer Area that API Explorer uses for the requests. In v69, there was no validation for these requests but in v70, there is validation.

To make sure that the integration works without adding the cvc for this type of payment, you could ask Adyen's support to configure the Customer Area for you. Please also check the Tokenization docs page. For now there are not further actions for this so I will close the issue.

kind regards, Alexandros Adyen