We’re preparing docs, SDKs, and support so builders can ship fast. This is a UI-first preview.
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)
})We’ll provide docs, examples, and a support channel for teams building mini-apps and integrations on top of DarajPay.