Pay API
Pay API Overview
Accept payments from Elebne wallet users. Choose between Hosted Checkout for a quick redirect flow or the full Pay API for complete control.
Pay API
The Pay API lets your application accept payments from Elebne wallet users. There are two integration paths depending on how much control you need.
Choose your integration
| Hosted Checkout | Pay API | |
|---|---|---|
| Integration effort | Minimal (redirect) | Moderate (API calls) |
| Payment UI | Elebne-hosted page | Your own UI or payment code |
| Customization | Brand logo + colors | Full control |
| Best for | E-commerce, invoices | POS systems, mobile apps, kiosks |
| Time to integrate | 30 minutes | 1-2 hours |
How it works
- Your server creates a payment intent via
POST /dev/intents - The customer pays using their Elebne wallet (via hosted page, QR code, or 6-digit payment code)
- Elebne sends a
payment.confirmedwebhook to your server - You verify the payment status via
GET /dev/intents/{ref}and fulfill the order
Key concepts
- Payment intent -- represents a single payment request. Has a unique
referenceNumber(e.g.PI-3XXXXXXXXXXXXXX) and a 6-digitcodefor in-person payments. - Amounts in centimes -- all amounts are integers in centimes. 50000 = 500.00 MRU.
- Idempotency -- every write endpoint requires an
X-Idempotency-Keyheader. Safe to retry on network errors. - Sandbox mode -- test keys (
sk_test_...) create sandbox intents with no real money. Usesimulate-paymentto test the full flow.
Base URL
https://api.elebne.ai/api/v1/devAuthentication
All requests require a Bearer token with your API key:
Authorization: Bearer sk_test_YOUR_SECRET_KEYUse secret keys (sk_test_, sk_live_) for creating intents, cancelling, and refunding. Publishable keys (pk_test_, pk_live_) can only read intent status.
Next steps
- Hosted Checkout -- redirect customers to Elebne's payment page
- Payment Intents -- full lifecycle: create, get, list, cancel
- Refunds -- full and partial refund flows
- Webhooks & Events -- real-time payment notifications
Was this page helpful?