Set up Rocka Buffet
To set up Rocka Buffet, use these API endpoints:GET /providers/topPOST /payments
GET /providers/top retrieves the list of top banks in your customer’s country. The metadata provided for each bank includes its unique id. To initiate a payment directly through any given bank, use POST /payments and pass the bank’s ID as the provider_id.
Sample requests and responses
Step 1. Retrieve banks
Sample request and response retrieving the list of France’s top banks:Sample request
Sample request
Sample response
Sample response
Step 2. Create a payment
ThePOST /payments endpoint initiates a new pending payment and returns the checkout URL (url) that you can redirect your customer to. It also returns the payment’s ID.
Sample request and response generating a new payment through La Banque Postale:
Sample request
Sample request
Sample response
Sample response
Step 3. Retrieve payment status
When creating the payment, you can specify thereturnUrl the customer will be redirected to once the payment is completed or the webhookUrl for payment status updates: