DarajPay Daraj Technologies

Developer Sdk

We’re preparing docs, SDKs, and support so builders can ship fast. This is a UI-first preview.

Quickstart
Initialize SDK, create payment, handle success callback.
Mini-app user
Read user info inside Telegram mini-app contexts.
Support
Docs + examples + templates (coming soon).

Minimal SDK v1

JavaScript/TypeScript SDK preview. This snippet shows the expected developer experience.

// 1. Initialize
const darajpay = new DarajPay({
  apiKey: "YOUR_KEY"
})

// 2. Create payment
darajpay.pay({
  amount: 100,
  currency: "ETB",
  provider: "chapa",
  successUrl: "https://app.com/success"
})

// 3. Get user info (inside mini-app)
const user = darajpay.getUser()

// 4. Handle payment status
darajpay.onPaymentSuccess((data) => {
  console.log("Paid!", data)
})
What’s next
  • Publish real SDK package and typed APIs.
  • Provide mini-app templates and examples.
  • Add webhooks and payment status events.
Coming soon

Support for builders

We’ll provide docs, examples, and a support channel for teams building mini-apps and integrations on top of DarajPay.