This guide walks you through the complete flow: create credentials, authenticate, create a checkout session, and handle the payment result.Documentation Index
Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A Dintero account (sign up here)
- Access to Dintero Backoffice
- A server that can make HTTP requests
Test vs production
Every Dintero account has two environments, identified by the account ID prefix:| Prefix | Environment | Example | Purpose |
|---|---|---|---|
T | Test | T12345678 | Sandbox — no real money, use test cards |
P | Production | P12345678 | Live — real payments |
Start with your test 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
Create a client
Click Create new API client > Checkout client, enter your website URL, and click Create.
Step 2: Get an access token
Exchange your credentials for a bearer token using the OAuth 2.0 client credentials flow.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.Amounts are in the smallest currency unit.
299.90 NOK = 29990.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.
- Redirect
- Embed
Send the customer to the Dintero-hosted payment page:Or redirect directly to the session
url from step 3.Step 5: Handle the result
After payment, Dintero notifies you through two channels:| Channel | How | Reliable? | Use for |
|---|---|---|---|
| callback_url | GET to your server | Yes (retried up to 20 times) | Verify payment, fulfill order |
| return_url | Customer redirect | No (browser may close) | Show confirmation page |
What’s next
Online store guide
Full end-to-end integration including capture and refunds.
Embed vs redirect
Compare integration approaches.
Express Checkout
Skip address forms for faster conversions.
Test data
Test cards and sandbox scenarios.