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:
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.
Redirect to Redsys
Customer submits the form and is redirected to the Redsys payment gateway (TPV Virtual).
Payment Processing
Customer enters their card details and completes the payment on the Redsys secure payment page.
Redirect Back
After payment, customer is redirected back to your success or error page with payment result parameters.
Notification
Redsys sends a server-to-server notification to your notification endpoint with the payment result.