Back to Examples
Redsys Authentication (transaction type 7) & Confirmation (type 8)

Redsys Authentication Operations

Authentication (validación de tarjeta) validates card data without charging the cardholder. The operation is valid for 90 days and only works with VISA and MasterCard. After authentication, you can confirm the operation to charge the cardholder.

Step 1: Authentication

Create an authentication operation to validate card data. The cardholder will go through the payment flow but won't be charged. The amount must be sent even though the cardholder won't be charged—it will be used for the confirmation operation later.

Step 2: Confirm Authentication

After a successful authentication, confirm the operation to charge the cardholder. You can confirm the full amount or a partial amount (less than or equal to the original authentication amount). Redsys responds with code 0000 when the confirmation succeeds.

Tips

  • Authentication only works with VISA and MasterCard cards. Other card types are not supported.
  • The authentication operation is valid for 90 days. You must confirm within this period.
  • The amount sent in authentication must match the amount you want to charge later, even though the cardholder won't see a charge initially.
  • Keep the Ds_Order from the authentication—you'll need it to confirm the operation.
  • Partial confirmations are allowed. Any unconfirmed amount will be released after the retention period expires.
  • The cardholder will go through the full payment flow including 3D Secure authentication if required, but won't see a charge on their account until confirmation.

Documentation