PHPackages                             mathermann/dohone-sdk - 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. mathermann/dohone-sdk

ActiveLibrary[Payment Processing](/categories/payments)

mathermann/dohone-sdk
=====================

A PHP 5.4+ SDK for easily use Dohone payment API

1.6.4(6y ago)1114MITPHPPHP ^5.4 | ^7 | ^8

Since Jan 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MatHermann/dohone-sdk)[ Packagist](https://packagist.org/packages/mathermann/dohone-sdk)[ Docs](https://github.com/mathermann/dohone-sdk)[ RSS](/packages/mathermann-dohone-sdk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (14)Used By (0)

DohoneSDK
=========

[](#dohonesdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f6afe6528ba6c0bd96ad0b416b871868274d251db71fc6ad609bf921a4b01640/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61746865726d616e6e2f646f686f6e652d73646b)](https://packagist.org/packages/mathermann/dohone-sdk)[![Total Downloads](https://camo.githubusercontent.com/9551a2a2c22d8c5220db4d6127995ef70734817c05e51e569f9c9c8e0117870d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61746865726d616e6e2f646f686f6e652d73646b)](https://packagist.org/packages/mathermann/dohone-sdk)
A PHP 5.4+ SDK for easily use Dohone payment API.

Note
----

[](#note)

This PHP package let you easily integrate **Dohone payment API** to your application or your web site for every Cameroon mobile payments operators (MTN Mobile Money, Orange Money and Express Union Mobile Money).

Before you start using this package, it's highly recommended to read documents below.

- [TUTORIAL D’INSTALLATION DE L’API DE PAIEMENT EN LIGNE POUR APPLICATIONS MOBILES](https://www.my-dohone.com/dohone/site/modules/pagesExtra/api/1/tuto-api-mobile.pdf)
- [TUTORIAL D’INSTALLATION DE L’API DE PAIEMENT EN LIGNE](https://www.my-dohone.com/dohone/site/modules/pagesExtra/api/1/tuto-api-dohone.pdf)
- [TUTORIAL D’INSTALLATION DE L’API DE TRANSFERTS AUTOMATIQUES (PAYOUT)](https://www.my-dohone.com/dohone/site/modules/pagesExtra/api/1/tuto-api-payout.pdf)

Table of contents
-----------------

[](#table-of-contents)

- [1. Requirements](#1-requirements)
- [2. Installation](#2-installation)
    - [2.1. Install Composer package](#21-install-composer-package)
    - [2.2. Implement TransactionInterface](#22-implement-transactioninterface)
- [3. Payin requests (collect payments)](#3-payin-requests-collect-payments)
    - [3.1. Create a DohoneSDK object](#31-create-a-dohonesdk-object)
    - [3.2. Make a « COTATION » command](#32-make-a--cotation--command)
    - [3.3. Make a « START » command](#33-make-a--start--command)
    - [3.4. Make a « CFRMSMS » command](#34-make-a--crfmsms--command)
    - [3.5. Make a « VERIFY » command](#35-make-a--verify--command)
    - [3.6. Handle Dohone's notifications](#36-handle-dohones-notifications)
- [4. Payout requests (refund customer or withdraw money)](#4-payout-requests-refund-customer-or-withdraw-money)
    - [4.1. Create a DohonePayoutSDK object](#41-create-a-dohonepayoutsdk-object)
    - [4.2. Make a « COTATION » command](#42-make-a--cotation--command)
    - [4.3. Make a transfer](#43-make-a-transfer)
    - [4.4. Handle Dohone's payout notifications](#44-handle-dohones-payout-notifications)

1. Requirements
---------------

[](#1-requirements)

This package requires: [![Required PHP version](https://camo.githubusercontent.com/58ae1e2613f76ac5e4e1669ab68d9357aac420889377631cd2fff4e662daf6ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d61746865726d616e6e2f646f686f6e652d73646b)](https://camo.githubusercontent.com/58ae1e2613f76ac5e4e1669ab68d9357aac420889377631cd2fff4e662daf6ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d61746865726d616e6e2f646f686f6e652d73646b)

2. Installation
---------------

[](#2-installation)

### 2.1. Install Composer package

[](#21-install-composer-package)

First of all, install the Composer package from your CMD or your Terminal.

```
$ composer require mathermann/dohone-sdk
```

### 2.2. Implement TransactionInterface

[](#22-implement-transactioninterface)

Then you need a class that implements [**TransactionInterface**](src/TransactionInterface.php) interface.
For example:

```
