Redirecting to Volt
By now, you’ve authenticated your API user and requested a payment and should have a response from the payment request endpoint. Now it’s time to send your payer to their bank to make the payment.
Response from the payment request
Choose the payment endpoint you’re using. If you got a checkoutUrl
entry in the response, you’re using /v2/payments.
- /v2/payments
- /payments
{
"id": "93b85f3c-76eb-4316-b1ae-f3370ddc59bc",
"checkoutUrl": "https://checkout.volt.io/{checkout_token}?auth=jwtToken"
}
Redirection
As you’re using v2 of our API, all you need to do is take the value of checkoutUrl
from this response and redirect your payer to that location.
{
"id": "93b85f3c-76eb-4316-b1ae-f3370ddc59bc"
}
Redirection
If you’re still using the original version of our API, you’ll need to manually create a checkout token and build the URL. Simply take the value of id
from the payment request response and Base64 encode it, then redirect your payer to the appropriate location, replacing {checkout_token}
with the base64 encoded version of the payment ID.
https://checkout.sandbox.volt.io/{checkout_token}
https://checkout.volt.io/{checkout_token}
We recommend using the Sandbox environment during development, as it allows you to test the end-to-end process without making real payments.
Once the payer has been redirected
The payer will be able to select their bank and continue with the payment process. If you passed a preselected bank through in the payment request stage, the country and bank selection fields on the checkout page will be unavailable to change, the payment process will continue with redirection to the payer’s bank.
- On this page
- Redirecting to Volt