2017 © Pedro Peláez
 

library jpesa

laravel jpesa mobile money payment implementation

image

fannypack/jpesa

laravel jpesa mobile money payment implementation

  • Tuesday, September 12, 2017
  • by mpaannddreew
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

About this library

This is a simple/basic implementation of JPesa payments in laravel 5, (*1)

Actions supported

Note: You must have a valid JPesa account to use this library - RECEIVING MONEY [Request payment], (*2)

For more information visit JPesa, (*3)

Installation

composer require fannypack/jpesa, (*4)

Register service provider, (*5)

FannyPack\JPesa\JPesaServiceProvider::class,

Register Facade Register service provider, (*6)

'JPesa' => FannyPack\JPesa\JPesa::class,

After the service provider is registered run this command, (*7)

php artisan vendor:publish

This command will create a copy of the library's config file and migrations into your code base, (*8)

jpesa.php

Run migrations, (*9)

php artisan migrate

Environment setup

The library loads configurations from the .env file in your application's root folder. These are the contents of jpesa.php, (*10)

return [
    'username' => env('JPESA_USERNAME', ''),
    'password' => env('JPESA_PASSWORD', ''),
];

Usage in context of your jpesa account

Using it with your models, add, (*11)

namespace App;

use FannyPack\JPesa\Billable;
use Illuminate\Database\Eloquent\Model;

class Account extends Model
{
    use Billable;
}

Requesting payment from a registered mobile money number, (*12)

$response = JPesa::deposit($from_phone_number, $amount);

Information about a jpesa transaction, (*13)

$response = JPesa::info($transactionId);

Bugs

For any bugs found, please email me at andrewmvp007@gmail.com or register an issue at issues, (*14)

The Versions

12/09 2017

dev-master

9999999-dev

laravel jpesa mobile money payment implementation

  Sources   Download

The Requires

 

by Mpande Andrew

laravel php library payments mobile money jpesa

12/09 2017

dev-dev-master

dev-dev-master

laravel jpesa mobile money payment implementation

  Sources   Download

The Requires

 

by Mpande Andrew

laravel php library payments mobile money jpesa

12/09 2017

v1.0

1.0.0.0

laravel jpesa mobile money payment implementation

  Sources   Download

The Requires

 

by Mpande Andrew

laravel php library payments mobile money jpesa