Skip to main content
Before you start accepting payments, test your Rocka integration to make sure everything’s working as intended.

Test your integration

1

Make a test API call

  1. Go to your Rocka Hub > Integration. You’ll find your test API key under Test credentials.
  2. To verify your site is connected to Rocka, make a test API call with your sandbox key. For example, you can try the Get the list of top banks endpoint. Make sure you select Sandbox in the server list.
2

Create your first payment in sandbox mode

Try creating your first payment with your test API key. For more details, see Create a payment. Once your test payments go through, you’ll see them in the Transactions section in your Rocka Hub.After you complete your onboarding in Rocka Hub, your live keys will become active.
3

Process the callback

Once the payment goes through, you will receive a callback to the webhookUrl you specified in your request.To see other callbacks you can potentially receive for other payment statuses, see Callbacks.

{
 "PaymentId":"bc973098-3dfb-4700-af20-28ca4fdb583a",
 "Status":"Done",
 "Signature":"b2e286bfc7b94ab2342342341881c85b50f286b23462436432d7dfc5fcd05ca2r234r231",
 "MerchantPaymentId":"12345678-1234-1234-1234-12345678910",
 "Reference":"12345678 PAYMENT",
 "Amount":50.0,
 "Currency":"EUR",
 "CardId":null,
 "Remitter":{
    "Name":"User Testing",
    "Iban":"TT123456789HFE112345",
    "SortCode":null,
    "AccountNumber":null
 },
 "AdditionalData":null,
 "DetailedInfo":null,
 "Method":"open-banking",
 "BankId":"sparkasse_de",
 "IsSenderBank":false,
 "BankTransactionId":"BANKTRANSACTIONID",
 "Settled":"Yes",
 "SettlementDate":"2024-10-01T07:18:56.316302Z"
}

Last modified on April 27, 2026