Redirecting to Volt

By now, you’ve authenticated your API user and requested a payment and should have a checkoutUrl returned from the POST /v2/payments endpoint (note that if you’re using payments V1, ‘v2’ won’t appear in the URL). Now it’s time to send your customer to their bank to make the payment itself. For that to happen, you need to redirect the customer to Volt.

Create a checkout token
{
    "id": "93b85f3c-76eb-4316-b1ae-f3370ddc59bc"
}

Creating a checkout token is simple. Take the payment ID you were returned during the payment request stage and Base64 encode it. Using the same ID number from our sample response when you saw a 201 Created status, your checkout token will look like this:

Redirect your customer

Once you’ve received your checkoutUrl, you’ll need to redirect your customer’s browser to Volt using that URL. We recommend using the Sandbox environment during development, as it allows you to test the end-to-end process without making real payments.

In these examples, {checkout_token} is used in place of the base64-encoded payment ID that you’ve created.

Note: If you passed a preselected bank through in the payment request stage, your customer will see a simple confirmation page before being redirected to their bank. If you didn’t pass a preselected bank through, 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. You can see both pages here.