paytrail / api-documentation

Paytrail Payment API documentation
MIT License
6 stars 11 forks source link

CIT payment requests can fail with status 400 #11

Closed dssjoblom closed 2 years ago

dssjoblom commented 2 years ago

We occasionally get status 400 for CIT payment requests. The error message is "Failed to create token payment". This behavior is undocumented. Why does this happen and is there something we can do to mitigate it? I can provide more information including logs upon request.

jfrojd-paytrail commented 2 years ago

This happens in cases where the card issuer declines the payment (no funds, expired card etc.). There is no technical way to mitigate this other than trying again later and if still fails contacting the customer to add another card.