Understand Redsys response codes
masterThe bank returns a code in the Ds_Response field.
Crucial: A successful payment is indicated by a code between 0000 and 0099. Always cast the response to an integer for comparison: $DsResponse = (int) $parameters['Ds_Response'];.
Common codes:
0000to0099: Payment approved0100to0199: OK, CVV verification mandatory0201: Signature error0204: Data error0209: Card error0214: Incorrect expiry date0290: Card not authorized0404: Merchant configuration error9913: Communication error9993: User abandoned operation9997: Timeout9999: General error