PHPackages                             lubem/gladepay - 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. lubem/gladepay

ActiveLibrary[Payment Processing](/categories/payments)

lubem/gladepay
==============

glade payment system for initiating and verifying bank transfer

01PHP

Since Mar 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/lubem5612/glade-pay)[ Packagist](https://packagist.org/packages/lubem/gladepay)[ RSS](/packages/lubem-gladepay/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

GladePay
========

[](#gladepay)

[![Latest Version on Packagist](https://camo.githubusercontent.com/350aaebb55c650665ec727d846997c587d60ff2f3dcd7a8bbf22055ba5d69122/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c7562656d2f676c6164657061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lubem/gladepay)[![Total Downloads](https://camo.githubusercontent.com/9cc1d11f25ede3c0b6c6a231be65d30421dfac7f46304dbaf9d16cf70adad492/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c7562656d2f676c6164657061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lubem/gladepay)[![Build Status](https://camo.githubusercontent.com/bac4dd725e2390a90a906d6c382212796501f189397be12ad391aaca31b31fea/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c7562656d2f676c6164657061792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/lubem/glade-pay)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

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

[](#installation)

Via Composer

```
$ composer require lubem/gladepay

Or add the following line to the require block of your composer.json file.

"lubem/gladepay": "@dev"

You'll then need to run composer install or composer update to download it and have the autoloader updated.

Skip this step if using Laravel >=5.5 as the service will be registered automatically
Once installed, you need to register the service provider. Open up config/app.php and add the following to the providers key.

"providers" => [
		.....

        Lubem\GladePay\GladePayServiceProvider::class,

		.....
            ],
"aliases" => [
		.....

        "GladePay": Lubem\GladePay\Facades\GladePay::class,

		.....
            ]

```

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

[](#configuration)

```
You can publish the configuration file using this command:

php artisan vendor:publish --provider="Lubem\GladePay\GladePayServiceProvider"

A configuration file named gladepay.php with some defaults will be placed in your config directory:

 env('GLADE_MERCHANT_ID', 'GP0000001'),

    /*
    |--------------------------------------------------------------------------
    | MERCHANT KEY
    |--------------------------------------------------------------------------
    |
    | set the merchant key from environment
    |
    */

    'key' => env('GLADE_MERCHANT_KEY', '123456789'),

    /*
     |--------------------------------------------------------------------------
     | BASE URL
     |--------------------------------------------------------------------------
     |
     | set the base api endpoint from environment
     |
     */

    'endpoint' => env('GLADE_ENDPOINT', 'https://demo.api.gladepay.com'),
];
```

Usage
-----

[](#usage)

```
Open your .env file and add your glade merchant key, glade merchant id,
and glade api base (https://api.glade.ng) url like so:
get more information on the endpoint at
```

[glade developer page](https://developer.glade.ng/api/#getting-started)

```

GLADE_MERCHANT_ID=xxxxxxxxxxxxx

GLADE_MERCHANT_KEY=xxxxxxxxxxxxx

GLADE_ENDPOINT=https://api.glade.ng

Set up routes and controller methods like so:

create a controller by through artisan command

$ php artisan make:controller GladePayController

#an example is shown below
