Como configurar el terminal de Redsys para notificaciones vía URL

There is a more or less recurring problem with Redsys, which is that orders for one reason or another are not marked as paid, time outs, errors 403, 301, 302, etc.

To solve this, I have added to my plugin the option to notify the site via parameters in the URL. In the plugin, there is nothing to do, just have the Lite version v6.3.0 or higher installed and configured with our Redsys account (FUC, Terminal, and SHA256), and correctly configure our terminal in Redsys or the premium version. This guide will focus on the latter.

First, we will go to the Redsys Channels website

Once we access, we should go to “Merchant Settings”

We will click on Search without needing to select anything and then on the eye on the right side of the terminal we are going to configure.

This is where we need to make the configuration.

  1. We will click on the pencil of “Configuration Data”
  2. In Online Notification, we will ensure that HTTP is checked at a minimum. It is recommended that you also have Merchant Email selected.
  3. In “Send parameters in URLs” you must select “YES, without showing Redsys receipt”, this is what will ensure that orders are always marked as paid.
  4. Finally, we will click the “Save changes” button

From this moment on, all orders should be marked as paid in the Lite version; if this does not happen, it should be due to the conjunction of several factors that, although unlikely, are possible. If it happens that Redsys cannot notify via IPN and additionally the person purchasing cannot be redirected to the site for some reason. Some of these reasons are the website being down, the computer, mobile, or tablet being turned off, or losing internet connection, etc. This would cause the order not to be marked as paid. However, the probabilities of this happening are low. In such a case, there would be nothing to do with the Lite version.

In the premium version, an extra configuration must be made in the plugin, since in the Lite version a series of data is always shown, while in the premium version it can be configured whether or not to display them, and they run in parallel with the verification of the data that Redsys may add to the URL. To do this, we will go to WooCommerce > Settings > Advanced Redsys and in the General section, we will select “Enable Parameters in URL”.

Activate verification of the parameters sent by Redsys in the payment URL.

The Premium version has an even greater security system. In addition to what has been mentioned, it includes connection and reading with emails. This way, the chances of everything failing are practically nil. This is thanks to the IMAP connection.