No specific error code number from the API Payment End Point on production mode


We are in the process of integrating the payment API errors and noticed that when we set Square in production mode, and use a test card for testing different errors, we all the time get a response PAN_FAILURE error code, regardless of the error case.
Here is the response
[errors] => Array
[0] => Array
[code] => PAN_FAILURE
[detail] => Authorization error: ‘PAN_FAILURE’


We noticed that when testing with a real credit card the issue is not there, and also in the sandbox mode, the error codes are correct. Can you please confirm that this is happening only for production when testing with a test credit card number?

:wave: With Square the test values are only usable in sandbox. When you move to production you’ll have to use real card data when submitting payments to Square. :slightly_smiling_face: