Skip to main content
Custom Layout Small
You can design your own payment UI using Rocka’s API endpoints and offer a custom selection of banks. This approach can skip the Rocka payment form entirely. Instead of a link to a Rocka’s hosted payment form, you will get a Rocka Buffet link (https://checkout.rocka.live/buffet?...) which will send the customer directly to their bank’s payment form. There are three ways to integrate direct payments. You can implement either of these or both:
  • Add bank buttons to your site. You can decide which banks you want to offer and add their buttons to the checkout page. Your customer will be redirected straight to their bank app or website.
  • Add a button for a bank your customer has already paid through. For returning customers that have already paid through Rocka, you can add a button that will automatically offer their most recent payment method (if you include their customerId or email). Alternatively, you can store the customer’s bank (BankId) and IBAN (Iban) that you received through payment webhooks and use this data for their next payment.
  • Offer open banking payments to customers who pay with card. If you have a custom card payment form on your site, you can offer direct open banking payments as an alternative. To do so, send Rocka the first 6 digits of the customer’s credit card number when creating the payment. This will generate a payment link that will redirect the customer directly to their bank’s payment form.

Set up a custom bank layout

1

Step 1. Complete your onboarding

Complete your onboarding in Rocka Hub and get your API keys. For more details, see Get your API key and Authorisation.
2

Step 2. Get the data

Collect all the required data, some of which might be from your customer. At the very least, you will need to provide the payment amount and currency, as well as your customer’s country (for personalised checkout).
3

Step 3. Retrieve major banks in your customer's country

Use the GET /providers/top endpoint to retrieve a list of the major banks in your customer’s country. You will need to provide the ISO 3166 code of the country and optionally, the number of banks you want to retrieve. You will get a list of banks with all the required metadata, including each bank’s id and logoUrlSample request and response retrieving the list of France’s top banks:
4

Step 4. Add payment buttons

You can use either the bank logos returned by GET /providers/top or your own custom assets. 
5

Step 5. Initiate payments

Design a payment form on your site (using either Rocka’s buttons or your own layout).
  • To initiate a payment, you will need to pass the bank’s providerId (which was returned as id by the GET /providers/top method). You can also include the customer’s IBAN to streamline the checkout process for them. If you don’t include the IBAN, most providers will ask the customer for it on the payment form.
  • For returning customers, include theircustomerId or email. Rocka will preselect their bank automatically. 
For EUR payments, at least one of customerId or email parameters is required. Sample request and response generating a new payment through La Banque Postale:

Offer open banking payments to customers who pay by card

Offer open banking payments to customers who pay by card
If you have a custom card payment form on your website, you can offer open banking payments to customers who chose to pay by card. This will generate a payment link that detects the customer’s bank and redirects them straight to their bank’s payment form, skipping Rocka’s payment page. To do so, when you create a payment, pass the first 6 digits of the credit card number the customer entered as iin:

Retrieve payment status

When creating the payment, you can specify the returnUrl the customer will be redirected to once the payment is completed or the webhookUrl for payment status updates:
For more details, see Retrieve payment details.
Last modified on August 17, 2026