Reference
SDKs
Official Elebne SDKs for Node.js, Python, and PHP. Currently in development.
SDKs
Coming Soon
Official SDKs are currently in development. In the meantime, use the REST API directly with any HTTP client.
We are building official SDKs to make integrating with the Elebne Developer API even easier. Each SDK will wrap the REST API with typed methods, automatic retries, idempotency key management, and webhook signature verification.
Planned SDKs
| SDK | Package | Status |
|---|---|---|
| Node.js / TypeScript | @elebne/node | In development |
| Python | elebne | Planned |
| PHP | elebne/elebne-php | Planned |
Preview: Node.js SDK
Here is what the Node.js SDK will look like once released:
import { Elebne } from '@elebne/node';
const elebne = new Elebne('sk_test_YOUR_KEY');
// Create a payment intent
const intent = await elebne.intents.create({
amount: 50000, // 500.00 MRU
description: 'Order #1234',
});
console.log(intent.referenceNumber); // "PI-3XXXXXXXXXXXXXX"
console.log(intent.code); // "482917"
console.log(intent.checkoutUrl); // "https://pay.elebne.ai/..."
// List intents with pagination
const { data, pagination } = await elebne.intents.list({
page: 1,
limit: 20,
});
// Cancel an intent
await elebne.intents.cancel(intent.referenceNumber);
// Refund a confirmed intent
const refund = await elebne.intents.refund(intent.referenceNumber, {
reason: 'Customer requested',
});
// Verify a webhook signature
const isValid = elebne.webhooks.verify(
requestBody,
headers['x-webhook-signature'],
headers['x-webhook-timestamp'],
);Preview: Python SDK
from elebne import Elebne
client = Elebne("sk_test_YOUR_KEY")
# Create a payment intent
intent = client.intents.create(
amount=50000, # 500.00 MRU
description="Order #1234",
)
print(intent.reference_number) # "PI-3XXXXXXXXXXXXXX"
print(intent.code) # "482917"
# List intents
intents = client.intents.list(page=1, limit=20)
# Verify webhook
is_valid = client.webhooks.verify(
payload=request_body,
signature=headers["x-webhook-signature"],
timestamp=headers["x-webhook-timestamp"],
)Using the REST API directly
Until SDKs are available, you can integrate with any HTTP client. See the full API reference:
- Pay API -- payment intents, hosted checkout, refunds
- Store API -- products, inventory, orders
- Authentication -- API key usage
- Webhooks -- signature verification
Get notified
Sign up for updates when SDKs are released by contacting [email protected].
Next steps
- Quickstart -- integrate using the REST API
- Common Patterns -- headers, amounts, dates
Was this page helpful?