SDKs
SDKs
Official Snippe client libraries for JavaScript, Python, and PHP
Official client libraries for the Snippe API. Each SDK wraps the HTTP API in idiomatic code, handles authentication and idempotency for you, and ships with a webhook signature verifier so you don't have to implement the HMAC dance yourself.
JavaScript / TypeScript
@snippe/sdk for Node.js 18+
Python
snippe for Python — sync and async clients
PHP
snippe/snippe-php for PHP 8.1+
What's in every SDK
- Authenticated client — pass your API key once, all requests carry the bearer token.
- Payments — create mobile money, card, and dynamic-QR payments and read their status.
- Disbursements — send payouts to mobile money wallets and Tanzanian banks.
- Webhook verification — verify the
X-Webhook-SignatureHMAC and parse the event payload. - Typed errors — distinguish validation, authentication, rate-limit, and webhook errors so you can branch on them.
If a feature isn't covered by your SDK yet, you can always fall back to the HTTP API directly with the same API key.
Don't see your language?
We also publish e-commerce plugins for WordPress / WooCommerce and WHMCS, and the snippe-101 repo on GitHub has copy-paste recipes in Node.js, Python, Go, and cURL for every endpoint.