PHPackages                             brilliant\_mind/emola-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. brilliant\_mind/emola-sdk

ActiveLibrary[Payment Processing](/categories/payments)

brilliant\_mind/emola-sdk
=========================

online payment manager using emola gateway

v1.0.0(1mo ago)07GPL-3.0-or-laterPHPPHP &gt;=8.0

Since May 26Pushed 1mo agoCompare

[ Source](https://github.com/osvaldogeraldo/emola_sdk)[ Packagist](https://packagist.org/packages/brilliant_mind/emola-sdk)[ RSS](/packages/brilliant-mind-emola-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

EMOLA SDK
=========

[](#emola-sdk)

PHP SDK for consuming the Movitel **e-Mola** USSD Push WebService (SOAP).

Supports: **C2B** (`pushUssdMessage`), **B2C** (`pushUssdDisbursementB2C`), transaction status, beneficiary name and account balance queries.

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- `ext-soap` enabled

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

[](#installation)

```
composer require brilliantmind/emola-sdk
```

Configuration
-------------

[](#configuration)

This SDK does **not** read environment variables by itself — you pass the credentials to `Emola::config()`. The recommended approach is to keep them in a `.env` file in your project and feed them into the config call.

### `.env` variables

[](#env-variables)

VariableRequiredDescriptionExample`EMOLA_WSDL`yesSOAP gateway WSDL endpoint. Provided by e-Mola after the contract is signed`https://1.2.3.4:8080/BCCSGateway/BCCSGateway?wsdl``EMOLA_USERNAME`yesEncrypted username assigned by e-Mola`d609baa5ba374a7e89f74f99c33ad761``EMOLA_PASSWORD`yesEncrypted password assigned by e-Mola`09671efad19a4d85f2960fde2812339e``EMOLA_KEY`yesPrivate key provided by e-Mola`your-private-key``EMOLA_PARTNER_CODE`yesPartner code provided by e-Mola (keep as string — may have leading zeros)`00204``EMOLA_LANGUAGE`noMessage language: `pt` (default) or `en``pt`> ⚠️ `EMOLA_WSDL` and all credentials are delivered by e-Mola **only after a contract is signed**. Never commit your `.env` — add it to `.gitignore`.

### Example `.env`

[](#example-env)

```
EMOLA_WSDL=https://1.2.3.4:8080/BCCSGateway/BCCSGateway?wsdl
EMOLA_USERNAME=d609baa5ba374a7e89f74f99c33ad761
EMOLA_PASSWORD=09671efad19a4d85f2960fde2812339e
EMOLA_KEY=your-private-key
EMOLA_PARTNER_CODE=00204
EMOLA_LANGUAGE=pt
```

### Loading the `.env`

[](#loading-the-env)

**Plain PHP** (using [`vlucas/phpdotenv`](https://github.com/vlucas/phpdotenv)):

```
