Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Messages Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Checkout error-handling UX for the Spanish market. Redsys is the dominant card acquirer in Spain, and 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.
  • Build vs. buy for the "code catalog" layer. The engineering decision here is not whether to integrate Redsys (you will), but whether to hand-maintain a 100+ row lookup table of response codes internally or import one. This package answers "buy" (effectively "borrow") — it offloads a tedious, low-value, high-bug-surface data table.
  • Support & operations roadmap. A code-to-message mapping directly enables self-serve support flows: localized decline reasons on the payment-failure screen, structured decline-taxonomy tagging for analytics (fraud vs. insufficient funds vs. technical error), and reduced ticket volume on "my card didn't work" contacts.
  • Localization scope. Because message strings in this class of package are typically Spanish-first, adopting it is also a scoping signal that Spanish-language checkout UX is a first-class requirement — relevant to pricing/expansion decisions for ES/LatAm markets.
  • Reconciliation & finance ops. Distinguishing "authorized" (e.g., 0000) from "denied" from "error" at the code level underpins settlement reconciliation dashboards and refund/chargeback workflows.

When to Consider This Package

Consider it when all of the following hold:

  • You are integrating (or already integrated with) Redsys as a payment gateway and receive Ds_Response and/or Ds_ErrorCode in your callbacks or redirect parameters.
  • You need a reference mapping of codes to human-readable messages — for checkout error screens, admin panels, support tooling, or logging enrichment.
  • You are comfortable vendoring or copying the mapping data rather than depending on the package as a living dependency (the project is small, low-activity, and its last release was December 2021 — treat the code list as data to own, not an API to trust).

Look elsewhere or build in-house when:

  • Currency of the code list matters. Payment processors add and revise response codes; a catalog last published in 2021 may not reflect every current Ds_ErrorCode, especially for newer 3DS2 / SCA flows. Cross-check against the official Redsys integration manual (the authoritative source) before shipping customer-facing copy.
  • You need a full payment integration — request signing (HMAC), form generation, redirect handling, idempotency, refunds. This package is a message catalog, not an SDK; pair it with a maintained Redsys client library.
  • You are not on Redsys (Stripe, Adyen, Mollie, etc.) — the codes are meaningless outside Redsys.
  • You require an actively maintained dependency with security response guarantees; 0 dependents and a 2021 last release are weak signals for supply-chain trust. Prefer inlining the constants under your own tests.
  • You need multi-language output beyond Spanish; the shipped strings are Spanish and you'd be authoring translations anyway.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager