Charging merchants
An app never takes money itself. It asks Kaladan to charge the merchant; the merchant accepts on a Kaladan page and pays Kaladan’s invoice, and Kaladan pays the app’s developer. The merchant sees every charge, from every app, in one place, and can trust that no app can bill them without their consent.
The kinds of charge
Section titled “The kinds of charge”| Kind | What it is |
|---|---|
ONE_TIME | A single payment: a setup fee, a lifetime licence. |
RECURRING | Monthly or annual. Each renewal is its own invoice. |
USAGE | Metered against a cap the merchant approves. Not offered until a prepaid wallet exists. |
Amounts are in rial, before VAT. Kaladan adds VAT to the merchant’s invoice.
Creating a charge
Section titled “Creating a charge”mutation { appChargeCreate( idempotencyKey: "golnar-pro-2026-11" input: { installationId: "…" kind: RECURRING name: "Anbar Sync Pro" amount: { amount: "4900000" } # rial, before VAT interval: MONTHLY trialDays: 14 returnUrl: "https://anbar.example.ir/kaladan/billing/done" } ) { charge { id status confirmationUrl } userErrors { code field } }}Send the merchant to confirmationUrl, a page in their Kaladan admin, valid for
48 hours. When they accept and pay, or start a trial, the charge becomes
ACTIVE and they return to your returnUrl. Read the charge with charge(id:)
to see where it stands.
After acceptance
Section titled “After acceptance”- Renewals are invoiced one by one. An unpaid renewal marks that charge
MERCHANT_PAST_DUEand nothing else: decide in your app what that means. - Cancelling keeps the period already paid for.
- Uninstalling ends the app’s charges with its tokens.
- There are no refunds on app charges.