🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Redsys & Bizum Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. What you need
  2. Install and activate
  3. Connect your virtual POS
  4. Add a feed to your form
  5. How a payment works
  6. Payment notifications
  7. Refunds
  8. Subscriptions are not included
  9. Test and Live
  10. For developers
  11. Troubleshooting
  12. Privacy

The Gravity Forms Redsys & Bizum Premium Add-on takes card and Bizum payments with your forms through the Redsys virtual POS (TPV virtual) your Spanish bank gives you. When a visitor submits the form, the add-on sends the visitor to the Redsys payment page for the exact total Gravity Forms worked out on the server. The card details, 3-D Secure and the Bizum confirmation happen there, never on your website. Redsys then sends a signed result to your site, and the entry is marked paid only when the signature, the order, your merchant code, the terminal, the amount and the currency all match.

This guide covers the setup, the feed, card and Bizum, notifications, refunds and going live. The add-on costs one site $49 a year, five sites $69 a year, unlimited sites $199 a year.

What you need

  • WordPress 6.5 or newer, PHP 7.4 or newer (with the openssl extension) and Gravity Forms 2.9 or newer.
  • A Redsys virtual POS from your bank: the merchant code (FUC), the terminal number and the SHA-256 secret key, for the test platform and for live payments. Your bank sends them, and the secret key is also shown in the Redsys admin panel.
  • For Bizum: Bizum switched on for your terminal. Ask your bank; it is part of your Redsys contract.
  • The Gravity Forms currency set to euros. Cards also work in US dollars, pounds, Swiss francs, Swedish, Norwegian and Danish kronor and Polish zloty when your bank has enabled that currency on the terminal. Bizum takes euros only.
  • Your site public and on HTTPS, so Redsys can deliver the payment notification.
  • A form with at least one product field (or a total).

The add-on sends customers to sis-t.redsys.es:25443 in Test and sis.redsys.es in Live, and calls the same hosts for refunds. Apart from that, it checks gravityextra.com for your licence and plugin updates.

Install and activate

  1. Upload the zip in Plugins → Add New → Upload Plugin and activate it.
  2. Open Forms → Settings → Redsys & Bizum, enter your GravityExtra licence key and press Activate License.
  3. The Redsys virtual POS and Payment notifications sections appear once the licence is active. Payments, notifications and refunds work only with an active licence.

Connect your virtual POS

Redsys and Bizum settings: Test or Live, the merchant code, terminal and SHA-256 secret key for each, the shop name, the payment page language, the euro currency line, the terminal-ready line with the masked key and the notification address
Settings: choose Test or Live and enter the merchant code, terminal and secret key of your virtual POS. The key is stored encrypted.
  1. Leave Environment on Test for now.
  2. Enter the test merchant code, terminal and secret key your bank gave you. To try the add-on before your bank answers, use the public Redsys test terminal below.
  3. Enter the live values too when you have them. Only the chosen environment is used.
  4. Set the shop name shown on the Redsys page (up to 25 characters) and the payment page language: your site language, or Spanish, English, Catalan, Basque, Galician, French, German, Italian or Portuguese.
  5. Save. The Terminal line turns green and shows the merchant code, the terminal and the masked key. The secret key is stored encrypted and is never shown again.
Setting Public Redsys test value
Merchant code (FUC) 999008881
Terminal 1
Secret key (SHA-256) sq7HjrUOBfKmC576ILgskD5srU870gJ7
Test card 4548 8100 0000 0003, expiry 12/49, CVV 123

Redsys has no test call

Redsys does not offer a request that only checks the key. The add-on checks the key format and that your server can make the signature; a test payment confirms the values with Redsys.

Add a feed to your form

The Redsys feed: products and services with the form total, first name, last name and e-mail mapped, the payment method choice of card, Bizum, every method or a form field, the order description and the notification option
The feed: card, Bizum, every method of the terminal, or let the customer choose on the form.
  1. Open the form, then Settings → Redsys & Bizum → Add New.
  2. Choose Products and Services and the payment amount, usually the Form Total.
  3. Map the first name, last name and e-mail. The name is shown as the cardholder on the Redsys page.
  4. Choose the payment method: Card, Bizum, Every method of my terminal (the customer chooses on the Redsys page), or The customer chooses on the form with a radio, drop-down or hidden field. A field value that contains “bizum” goes to Bizum; any other value goes to the card page.
  5. Set the order description shown on the Redsys page. Merge tags work, for example Booking #{entry_id}.
  6. Keep Send form notifications only after the customer has paid ticked, so your booking e-mails go out for paid entries only.
A pottery class booking form with name, e-mail, a Pay with choice of card or Bizum, two products, the total in euros and the Continue to payment button
The form your customer fills in. Card or Bizum details are entered on the Redsys page, not here.

How a payment works

  1. The visitor submits the form. Gravity Forms works out the total on the server; the add-on gives the entry a new 12-character order number and signs the payment with your secret key (HMAC_SHA256_V1).
  2. The visitor goes through a short hand-over page that posts the signed payment to Redsys, and pays by card with 3-D Secure, or confirms the payment in the Bizum app.
  3. Redsys sends the signed result to the notification address. The add-on checks the signature, the order, the merchant code, the terminal, the amount and the currency. Only then is the entry marked Paid, with the authorisation code in the notes, or Failed with the Redsys answer code.
  4. The visitor comes back to your form page and sees your confirmation. If the notification is a few seconds late, the page waits and checks again by itself.

When your terminal also adds the signed result to the return address, the add-on checks it in the same way, so the entry can be marked paid even before the notification arrives. A repeated notification never completes a payment twice.

Payment notifications

The add-on sends the notification address with every payment, so you do not need to enter it in the Redsys admin panel. You find it in the Payment notifications section of the settings, together with the last accepted notification. A notification with a wrong signature is refused, and one that does not match the entry is noted on the entry and never marks it paid.

Refunds

An entry paid through Redsys and partly refunded: the Redsys and Bizum box with the status, last Redsys answer, order, authorisation code, method, amount, refunded amount and the refund form
The entry after payment: status, order, authorisation code and refunds from the entry screen.

Open a paid entry. The Redsys & Bizum box shows the status, the order, the authorisation code, the method and the amounts. Type an amount and press Refund to refund all or part of the payment to the card or Bizum account the customer paid with. The refund is sent to Redsys as a signed request, and the entry becomes Partially Refunded or Refunded when Redsys accepts it. Refunds by API must be enabled for your terminal; if they are not, Redsys answers with an error code, the entry note shows it, and you can refund from the Redsys admin panel.

Subscriptions are not included

Redsys recurring payments (payment by reference, also called COF) must be switched on for each terminal by the bank, so there is no self-serve way to start them. The add-on takes one-off payments only, and the feed does not offer the Subscription transaction type.

Test and Live

  • In Test, entries are marked as test payments and no money moves. Use the test card from the table above, a declined payment and a refund before you go live.
  • To go live, enter the live merchant code, terminal and secret key, choose Live and save. Make one small real payment and refund it.
  • Entries remember the environment they were paid in, so refunds of test payments keep going to the test platform.

For developers

The notification address can be changed with the gravityextra_redsys_notification_url filter. Amounts, the order number, the merchant code and the currency are always set by the add-on.

// Send Redsys notifications to another public address of the same site
// (for example when the home page is behind a login).
add_filter( 'gravityextra_redsys_notification_url', function ( $url ) {
    return add_query_arg( 'callback', 'gfredsys', home_url( '/pay/' ) );
} );

Troubleshooting

What you see What to do
The terminal line says to save the merchant code, terminal and secret key All three are needed for the chosen environment. The secret key has 32 characters; copy it without spaces.
The Redsys page shows SIS0042 The signature does not match: the secret key does not belong to that merchant code and terminal, or test and live values are mixed.
The Redsys page shows SIS0051 The order number was already used. Each submission gets a new order number; this appears when an old payment link is opened again.
Entries stay Processing Redsys could not reach the notification address. Check that the site is public and on HTTPS, and that no firewall or maintenance mode blocks POST requests to it.
Bizum is not offered Bizum must be active on your terminal (ask your bank), and the form currency must be euros.
A refund fails with an SIS code Refunds by API must be enabled for your terminal. Otherwise refund from the Redsys admin panel; the entry note shows the code.

Privacy

The add-on sends Redsys the amount, the currency, the order number, the order description, the cardholder name and the return and notification addresses. Card numbers and Bizum phone numbers are entered on the Redsys page and never reach your site. The secret key is stored encrypted with keys from your site’s WordPress salts. Uninstalling the add-on removes its settings, including the key.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr