This guide walks you through everything you need to go from zero to a working test payment. By the end you will have a merchant account, a test secret key, and a confirmed API response from Borga.Documentation Index
Fetch the complete documentation index at: https://docs.borga.is/llms.txt
Use this file to discover all available pages before exploring further.
Borga amounts are expressed in whole Icelandic króna (ISK). Unlike many currencies, ISK has no subunit — there are no aurar in modern circulation. Pass
1000 to charge 1,000 kr, not 0.01 kr.Create your merchant account
Go to dashboard.borga.is and sign up. During onboarding you will need:
- Your company kennitala (Icelandic company registration number)
- A valid business email address
- Acceptance of Borga’s terms of service
Get your API keys
In the dashboard, navigate to Settings → API Keys and create a new key pair:
- Secret key (
sk_test_…) — used for server-side API calls. Keep this private. - Publishable key (
pk_test_…) — optionally used for browser-side embedded checkout flows.
mer_…), visible on the API Keys page. Include it as the X-Merchant-Id header on every request.Create a test payment
Send a A successful response returns a payment object:Save the
POST request to /v1/payments with your secret key and merchant ID. The request body requires an amount (in whole ISK), a currency, and a description.id — you will use it to retrieve the payment in the next step.Retrieve the payment
Fetch the payment you just created to confirm the details and current status:The response mirrors the payment object from the previous step. Check the
curl
status field — a payment that has not yet been completed will show pending.Go live
When you are ready to accept real ISK payments:
- Apply for live mode from the dashboard under Settings → Go Live.
- Complete any additional compliance steps Borga requires.
- Generate a live secret key (
sk_live_…) and update your server environment variables.
Next steps
Authentication
Learn about key types, the Merchant ID header, idempotency, and how to handle auth errors.
Accept a payment
Full guide to handling the complete payment lifecycle, including confirmation and refunds.
Hosted checkout
Use payment sessions to redirect customers to a Borga-hosted checkout page.
API reference
Full reference for every endpoint available in the Borga API.