Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbrax/pesapal-laravel

A Laravel package that helps you to integrate with https://pesapal.com
https://github.com/dbrax/pesapal-laravel

composer epmnzava laravel mobilemoney payments pesapal

Last synced: 2 months ago
JSON representation

A Laravel package that helps you to integrate with https://pesapal.com

Awesome Lists containing this project

README

        

[![Latest Version on Packagist](https://img.shields.io/packagist/v/epmnzava/pesapal.svg?style=flat-square)](https://packagist.org/packages/epmnzava/pesapal)
[![Build Status](https://img.shields.io/travis/epmnzava/pesapal/master.svg?style=flat-square)](https://travis-ci.org/epmnzava/pesapal)
[![Total Downloads](https://img.shields.io/packagist/dt/epmnzava/pesapal.svg?style=flat-square)](https://packagist.org/packages/epmnzava/pesapal)
[![Emmanuel Mnzava](https://img.shields.io/badge/Author-Emmanuel%20Mnzava-green)](mailto:[email protected])

This is a laravel package for intergrating with - [pesapal service] (https://developer.pesapal.com/)
More information of this can be found [here](https://epmnzava.medium.com/)

## Installation

## Version Matrix

Version | Laravel | PHP Version
------- | --------- | ------------
1.0.0 | 8.0 | >= 8.0
1.0.1 | 8.0 | >= 7.3 >= 8.0
1.0.2 | 8.0 | >= 7.2.5 >= 8.0

You can install the package via composer:

```bash
composer require epmnzava/pesapal
```

# Update your config (for Laravel 5.4 and below)
Add the service provider to the providers array in config/app.php:
```
Epmnzava\Pesapal\PesapalServiceProvider::class
```
Add the facade to the aliases array in config/app.php:
```
'Pesapal'=>Epmnzava\Pesapal\PesapalFacade::class,
```

# Publish the package configuration (for Laravel 5.4 and below)
Publish the configuration file and migrations by running the provided console command:
```
php artisan vendor:publish --provider="Epmnzava\Pesapal\PesapalServiceProvider"
```
### Environmental Variables
PESAPAL_CONSUMER_KEY ` your provided pesapal consumer key `

PESAPAL_CONSUMER_SECRET ` your provided pesapal client secret `

PESAPAL_API_URL ` your provided pesapal api url live: www.pesapal.com Test demo.pesapal.com `

PESAPAL_CALLBACK_URL ` your callback url `

CURRENCY_CODE ` currency put TZS for Tanzanian Shillings `

## Usage
This release does not come with database tables for transaction or payments you need to create then After you have filled all necessary variables , providers and facases this is how the package can be used.

``` php