Redirecting to Volt
At this point you should have a payment ID returned from the POST /payments endpoint. You can now send your customer to their bank to actually make the payment. For that, you now need to redirect your customer to Volt.
#
Create a checkout tokenUsing the sample response we got after requesting the payment we must now create a Volt checkout token.
To do this, simply take the payment ID we returned and Base64 encode it. Using our sample ID, you should end up with a checkout token that looks like this :-
#
Redirect your customerOnce you have a checkout token, you should redirect your customer's browser to Volt using the following URL. During development, you should use the sandbox environment - you won't be able to make real payments but can test the end-to-end process.
where {checkout_token} is the base64 encoded payment ID that you've just created.
#
Customer experienceIf you've preselected a bank and passed that through in the payment request then we'll show your customer a simple confirmation page before we redirect them to their bank.
If not, we'll show them the full Volt checkout page, where they'll be able to change countries and select the bank they wish to pay with.
#
Default countryIf you know the country where your customer is located, then you can pass it through in the checkout URL after the checkout token, using the parameter name of countryCode and a value from the supported countries below. We'll then preselect that country and show them banks from their location by default.
If you don't pass the country through, or you pass through an invalid option, we'll make a best guess at locating them from the location their browser reports.
And if we still can't locate them by geocoding, they will need to select their country from the list.
- Sandbox
- Production
#
Currently supported countriesSupply the two-letter ISO code for the country as the countryCode option in the redirect URL. If the location is unsupported the customer will need to select their location.
AT
- AustriaBE
- BelgiumBG
- BulgariaCY
- CyprusCZ
- CzechiaDE
- GermanyDK
- DenmarkEE
- EstoniaES
- SpainFI
- FinlandFR
- FranceGB
- United KingdomGR
- GreeceHR
- CroatiaHU
- HungaryIE
- IrelandIS
- IcelandIT
- ItalyLI
- LiechtensteinLT
- LithuaniaLU
- LuxembourgLV
- LatviaMT
- MaltaNL
- NetherlandsNO
- NorwayPL
- PolandPT
- PortugalRO
- RomaniaSE
- SwedenSI
- SloveniaSK
- Slovakia
#
Preferred languageThe default language for our checkout and conformation pages is English. If you'd like them displayed in one of our other supported languages, add the two-letter country code to the path as follows :-
- Sandbox
- Production
#
Currently supported languagesSupply the two-letter ISO code for the language in the redirect URL path.
bg
- Bulgariance
- Czechde
- Germanen
- Englishes
- Spanishfr
- Frenchhr
- Croatianhu
- Hungarianit
- Italianlt
- Lithuanianlv
- Latviannl
- Dutchpl
- Polishpt
- Portuguesero
- Romaniansl
- Sloveniansk
- Slovak
If there's a language you'd like our checkout to support, please let us know at support@volt.io.