Back to Examples
Redsys Redirection Payment

Redirection Payment Examples

Test Redsys redirection payment flow. The redirection model redirects customers to the Redsys payment gateway where they can complete their payment securely. After payment, customers are redirected back to your success or error pages.

Create Payment Redirect Form

Configure the payment parameters and create a redirect form. When submitted, the form will redirect the customer to the Redsys payment gateway.

Payment Flow

Understanding the redirection payment flow:

1

Create Payment Form

Your application creates a payment form with the order details (amount, order ID) and signs it with your secret key. Currency is fixed to EUR.

2

Redirect to Redsys

Customer submits the form and is redirected to the Redsys payment gateway (TPV Virtual).

3

Payment Processing

Customer enters their card details and completes the payment on the Redsys secure payment page.

4

Redirect Back

After payment, customer is redirected back to your success or error page with payment result parameters.

5

Notification

Redsys sends a server-to-server notification to your notification endpoint with the payment result.

Documentation