Skip to main content
This guide walks you through the complete flow: create credentials, authenticate, create a checkout session, and handle the payment result.

How it works

Every Dintero integration follows the same pattern:
1

Get credentials

Create an API client in Backoffice and save your Client ID and Client Secret.
2

Authenticate

Exchange credentials for a bearer token.
3

Create a session

Send your order details to Dintero and get back a checkout URL.
4

Handle the result

Dintero calls your server with the transaction result. Capture, refund, or void as needed.

Prerequisites

Sandbox vs production

Every Dintero account has two environments, identified by the account ID prefix:
Start with your sandbox account (T prefix). Switch to production by creating new API credentials on your P account when you’re ready to go live.

Step 1: Create API credentials

1

Open Backoffice

Go to Settings > API clients (under API & Integrations).
2

Create a client

Click Create new API client > Checkout client, enter your website URL, and click Create.
3

Save credentials

Copy the Client ID and Client Secret immediately.
The Client Secret is shown only once. Store it securely — you cannot retrieve it later.
For a visual walkthrough, see the API Client page.

Step 2: Get an access token

Exchange your credentials for a bearer token using the OAuth 2.0 client credentials flow.
The response includes a token valid for 4 hours:
Use this token in the Authorization: Bearer {access_token} header for all API calls.

Step 3: Create a checkout session

A session represents a customer’s order. Send the order details and get back a checkout URL.
The Checkout API is now available under https://api.dintero.com/v1/accounts/{account_id}/payments/.The previous https://checkout.dintero.com/v1/ base is still supported, so existing integrations continue to work without changes.
Amounts are in the smallest currency unit. 299.90 NOK = 29990.
The response returns a session ID and checkout URL:

Step 4: Display the checkout

Show the checkout to your customer using the Web SDK. Install it with npm:
Not sure which approach to use?Redirect sends the customer to a Dintero-hosted page — minimal setup, no iframe. Embed renders the checkout inside your page — more control over the experience.See the SDK documentation for a full comparison.
Send the customer to the Dintero-hosted payment page:
Or redirect directly to the session url from step 3.
Use test data to complete a test payment.

Step 5: Handle the result

After payment, Dintero notifies you through two channels:
Always verify the transaction via the callback. The redirect is not guaranteed.
See After payment for transaction statuses and handling.

What’s next

Express Checkout

Skip address forms for faster conversions.

Embed vs redirect

Compare integration approaches.

Test data

Test cards and sandbox scenarios.
Last modified on July 27, 2026