Quickstart
Charge your first test payment from code in about five minutes. No product needed.
By the end of this page you'll have charged a sandbox buyer 1,237 ETB from your own code and seen the paid order. You don't need to create a product, and nothing here moves real money.
Using an AI coding agent?
Install the Jami MCP server and ask it to do this page for you. It can create sandbox checkouts, wait for them, and send signed test webhooks to your local server.
Turn on Developer Mode
In Jami, open Settings → Developer Mode and switch it on. It needs a KYC-verified account; if the switch is disabled, finish KYC first. JamiDev then appears in the sidebar.
Create a sandbox organization
In JamiDev, open the organization switcher in the header and choose New organization. New organizations start in sandbox, where payments are simulated. Your default organization is production, so make sure the sandbox one is selected before you continue.
Create an API token
Go to Developer → API Tokens and create a token. In a sandbox organization it starts
with jamidev_test_. It's shown once, so save it now:
JAMI_TOKEN=jamidev_test_...Charge an amount from code
npm install jami-sdk # 0.5.0 or laterimport { Jami } from 'jami-sdk';
const jami = new Jami({ token: process.env.JAMI_TOKEN! });
const checkout = await jami.createCheckout({
amount: 123700, // 1,237.00 ETB, in santim
description: 'Order #1042', // what the buyer sees
customer: { email: 'buyer@example.com', phone: '251900000001' },
gateway: 'telebirr',
});
const status = await jami.waitForCheckout(checkout.sessionId);
console.log(status.status, status.orderId); // 'completed' '6710c31f…'Run it with npx tsx --env-file=.env charge.mts (.mts so top-level await works).
251900000001 is a sandbox number that pays instantly. Use 251900000002 to see a
failure, or any other number to get a simulator page where you click Approve payment or
Fail payment. In sandbox, checkout.mode is always redirect: checkoutUrl is the
simulator page, or the result page for the two instant numbers.
Every amount in the API is an integer in santim (ETB × 100). More on this in Charge any amount.
Or send a payment link
The checkout above pushes the prompt straight to the buyer's phone. If you'd rather send the
buyer a link, by SMS, Telegram or email, leave out gateway and customer:
const { checkoutUrl } = await jami.createCheckout({ amount: 123700, description: 'Order #1042' });
console.log(checkoutUrl); // https://jami.bio/jamidev/pay/cs_…Open it, enter 0900000001 as the phone and pay. A failed attempt (0900000002) can be
retried on the same link. See Collect the payment.
Check the result
Open Store → Orders: the order is there, stamped environment: "sandbox". You got a
[TEST] sale email, and webhooks fired with livemode: false. Buyer receipts aren't sent
in sandbox.
Optional: sell a product instead
If you'd rather sell a fixed catalog, with a public page anyone can open, checkout links or
license keys, create a product and pass its p_… token instead of amount and
description:
const product = await jami.products.create({
title: 'Ge’ez Calligraphy Course',
pricingModel: 'fixed',
price: { amount: 250000 }, // 2,500.00 ETB
});
console.log(product.url); // https://jami.bio/jamidev/p_…, its public page
await jami.createCheckout({
productId: product.token,
customer: { email: 'buyer@example.com', phone: '251900000001' },
gateway: 'telebirr', // or leave out gateway and customer for a payment link
});You can also create products in Store → Products → New product. See Products & Benefits.
Next
- Get notified instead of polling: Webhooks.
- Match payments to your own orders with
metadata: Charge any amount. - See every SDK method and error: SDK.
- Sell without writing a backend: Checkout links and the Storefront.
Go live
When the sandbox flow works end to end:
- Settings → Environment → Switch to production. New checkouts now charge real money.
- Issue a new token. It starts with
jamidev_live_. Your test token stops working the moment the environment changes. - Register your webhook endpoint again in the production organization. Webhook endpoints belong to one organization.
- Fulfil from the webhook or a status poll, never from the buyer's redirect back to your site.
Before switching, run the go_live_checklist prompt in the MCP server against
your codebase, or check the list on the webhooks page.
