redsys/messages
Redsys Messages is a PHP library for building and validating Redsys payment gateway messages, including signed requests and notifications. It helps Laravel/PHP apps handle merchant parameters and HMAC SHA-256 signatures when integrating Redsys payments.
Ds_Response / Ds_ErrorCode are the two fields your backend receives on every transaction callback. This package gives you a ready-made mapping from those opaque numeric codes to human-readable descriptions — the raw material for customer-facing error copy ("Tarjeta caducada", "Pago denegado por el banco", etc.) and for support-tooling that shows agents why a payment failed without them memorizing codes.0000) from "denied" from "error" at the code level underpins settlement reconciliation dashboards and refund/chargeback workflows.Consider it when all of the following hold:
Ds_Response and/or Ds_ErrorCode in your callbacks or redirect parameters.Look elsewhere or build in-house when:
Ds_ErrorCode, especially for newer 3DS2 / SCA flows. Cross-check against the official Redsys integration manual (the authoritative source) before shipping customer-facing copy.For executives: We're integrating Redsys, the leading card payment processor in Spain. When a payment succeeds or fails, Redsys replies with numeric codes that are meaningless to customers and support agents. This package is a pre-built dictionary translating those codes into plain-language messages. It's a small, free, MIT-style building block that saves us from recreating and maintaining that dictionary ourselves, and it accelerates a customer-facing benefit: clear, localized reasons when a card payment fails. Caveat: the code list was last updated in 2021, so we will validate it against the current official Redsys specification and own the mapping internally rather than treating it as a long-term dependency.
For engineering: Treat redsys/messages as a reference dataset, not a runtime dependency. Recommended approach: extract the code-to-message mapping into our own constants/enum with tests, cite the package as the source, and reconcile against the official Redsys manual. Benefits: typed access to Ds_Response / Ds_ErrorCode, a single place to add i18n and new codes, and no exposure to an unmaintained 10-star package. The opportunity score (~33) reflects real utility for anyone in the Spanish payments space — high applicability, low ecosystem maturity.
How can I help you explore Laravel packages today?