Hello,
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’
[category] => PAYMENT_METHOD_ERROR
)
)
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?