Official SDKs

Server SDKs call the API with your secret key; browser and app SDKs show the checkout with a publishable key and a checkout session your server created. They all speak API version 2026-10-29.

One API, one host

Every SDK talks to https://api.watenga.africa. Test or live is decided by the key (sk_test_… / sk_live_…): a test key never moves money.

Server SDKs

The same resources and method names in every language, generated types from the OpenAPI document, one error type with code, request_id, param and doc_url, retries with an Idempotency-Key on every write, auto-pagination, and webhook verification that accepts two secrets while you rotate.

LanguagePackageInstall
Node.js@watenga/nodenpm install @watenga/node
Pythonwatengapip install watenga
PHPwatenga/watenga-phpcomposer require watenga/watenga-php
Gogithub.com/watenga-africa/watenga-gogo get github.com/watenga-africa/watenga-go
Dart (server)watenga_flutterdart pub add watenga_flutter

Browsers and apps

PlatformPackageWhat it is
WebWatenga.jsEmbedded checkout in one script tag (card entry in the gateway frame, PCI SAQ A); events onReady, onPending, onSuccess, onCancel, onError
iOSWatengaSwiftUI payment sheet (Swift Package Manager, CocoaPods)
Androidafrica.watenga:watenga-androidJetpack Compose payment sheet (Maven Central)
React Native@watenga/react-nativePayment sheet for React Native and Expo
Flutterwatenga_flutter_uiFlutter payment sheet

The app sheets offer the methods, wallets, currencies and phone formats of your market (from the server) and draw your Checkout Studio design.

Tools

ToolPackageWhat it does
CLI@watenga/cliwatenga listen, trigger and logs tail; API calls from a terminal
MCP server@watenga/mcpYour AI assistant works with your account through the API, with your key and its scopes

Release status

The packages are release-ready and published by Watenga's release workflow. Until a package is on its registry, its page shows how to install it from a checkout of the Watenga repository. Watenga.js is always on https://js.watenga.africa/v1/watenga.js.

Refunds through the API; payouts in the dashboard

A secret key refunds when its app's Refunds switch is on and an Admin has set the app's refund limits; a restricted key needs the refunds scope (Refunds). Payouts to your bank are dashboard-only, with two-step verification: they are not in the API, the SDKs or the CLI.