This walks through the full payment flow using curl. The examples use https://api.dinari.me; https://api.dinarifintech.dz works the same way (see Where DINARI lives).

1. Get an API key

Your business must be approved first — see Getting started. Then, in the merchant portal, open Developers → API keys and create a key. The plaintext key (sk_live_…) is shown once; only its hash is kept, so it cannot be retrieved again. Store it on your server.

2. Add a webhook endpoint (optional)

The response includes a per-endpoint secret (shown once) used to verify signatures. See Webhooks.

3. Create a payment

Redirect the customer to payment_url.

4. Customer pays

On SATIM’s hosted page, in SATIM’s test environment, use a test card: After payment, SATIM redirects the customer back to DINARI, which confirms the result, fires your webhook, and forwards the customer to your success_url or fail_url.

5. Check the status

A paid payment returns "status": "PAID". See Payments for refunds and the full status list.