PHPackages                             snippe/snippe-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. snippe/snippe-php

ActiveLibrary[Payment Processing](/categories/payments)

snippe/snippe-php
=================

Official PHP SDK for Snippe Payment API - Simple mobile money, card &amp; QR payments

v1.0.1(3mo ago)21051[1 PRs](https://github.com/Neurotech-HQ/snippe-php-sdk/pulls)MITPHPPHP &gt;=8.1

Since Feb 24Pushed 3mo agoCompare

[ Source](https://github.com/Neurotech-HQ/snippe-php-sdk)[ Packagist](https://packagist.org/packages/snippe/snippe-php)[ Docs](https://github.com/snippe/snippe-php)[ RSS](/packages/snippe-snippe-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Snippe PHP SDK
==============

[](#snippe-php-sdk)

The simplest way to accept payments in Tanzania. Mobile Money, Cards, and QR codes — all in a few lines of PHP.

```
$snippe = new Snippe('snp_your_api_key');

$payment = $snippe->mobileMoney(5000, '0754123456')
    ->customer('John Doe', 'john@email.com')
    ->send();

echo $payment->reference(); // "9015c155-9e29-..."
echo $payment->status();    // "pending"
```

---

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Collecting Payments](#collecting-payments)
    - [Mobile Money](#mobile-money)
    - [Card Payments](#card-payments)
    - [Dynamic QR](#dynamic-qr)
- [Webhooks](#webhooks)
- [Payment Operations](#payment-operations)
    - [Find Payment](#find-payment)
    - [List Payments](#list-payments)
    - [Account Balance](#account-balance)
    - [Retry USSD Push](#retry-ussd-push)
    - [Search Payments](#search-payments)
- [Payment Object](#payment-object)
- [Error Handling](#error-handling)
- [Phone Number Normalization](#phone-number-normalization)
- [Configuration](#configuration)
- [Full Example: Bookstore](#full-example-bookstore)
- [API Reference](#api-reference)
- [Testing](#testing)

---

Installation
------------

[](#installation)

```
composer require snippe/snippe-php
```

**Requirements:** PHP 8.1+, ext-curl, ext-json

---

Quick Start
-----------

[](#quick-start)

```
