SDKs & Libraries
What's available today for integrating with Wajub — the REST API, the CLI, and client-side checkout widgets. No backend SDK is published yet.
No backend SDK yet
Wajub does not currently publish an official backend SDK for Node.js, Python, PHP, or Go.
There is no @wajub/sdk npm package, no wajub PyPI package, no wajub/wajub-php Composer
package, and no wajub-go module — install commands or code referencing those do not work.
Integrate directly against the REST API with your language's standard HTTP client
(fetch, requests, Guzzle, net/http, …); see the quickstart below
for the pattern in each language.
What's actually available
Real tools today
Calling the API directly
Every endpoint accepts your key in the Authorization header (no Bearer prefix) and
plain JSON bodies — no client library is required:
curl https://api.wajub.com/payments \
-H "Authorization: pk_test.8f2b91c4d7e6a0f3" \
-H "Content-Type: application/json" \
-d '{ "amount": 5000, "currency": "XAF", "customer": { "email": "a@b.co" } }'Client-side checkout widgets
For embedding the hosted payment page directly in a web app, the real, published @wajub/js
package (and thin @wajub/react / @wajub/vue wrappers) renders the checkout as an iframe —
this is a UI widget, not a REST client, and it still requires your backend to create the
payment session first via the API:
import { createPayment } from '@wajub/js';
// sessionId comes from your backend (POST /payments)
createPayment({
sessionId: session.id,
container: '#checkout',
onSuccess: (transaction) => showSuccess(transaction),
onError: (error) => showError(error),
onCancel: () => showCancelled(),
});