Dynamic Currency Conversion (DCC)
Test Redsys DCC payment flow. DCC allows foreign customers to pay in their local currency while you receive payment in your base currency. The customer will be offered currency conversion options during checkout on the Redsys payment gateway.
Create DCC Payment Redirect Form
Configure the DCC payment parameters. The amount should be in your base currency (merchant currency). When customers pay, they will be offered the option to pay in their local currency with automatic conversion.
The currency you will receive payment in. Common values: EUR, USD, GBP, etc.
DCC Payment Flow
Understanding the DCC payment flow:
Create DCC Payment Form
Your application creates a DCC-enabled payment form with the order details (amount in base currency, order ID) and signs it with your secret key. The DS_MERCHANT_DCC parameter is set to "Y" to enable currency conversion.
Redirect to Redsys
Customer submits the form and is redirected to the Redsys payment gateway (TPV Virtual) with DCC enabled.
Currency Conversion Offer
If the customer's card is from a different country, Redsys will offer currency conversion. The customer can choose to pay in their local currency or in the merchant's base currency.
Payment Processing
Customer enters their card details and completes the payment. The payment is processed in the currency they selected, but you receive payment in your base currency.
Redirect Back
After payment, customer is redirected back to your success or error page with payment result parameters, including currency conversion information if applicable.
Notification
Redsys sends a server-to-server notification to your notification endpoint with the payment result, including DCC conversion details if the customer chose currency conversion.