Download the PHP package alphaolomi/laravel-azampay without Composer
On this page you can find all versions of the php package alphaolomi/laravel-azampay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alphaolomi/laravel-azampay
More information about alphaolomi/laravel-azampay
Files in alphaolomi/laravel-azampay
Package laravel-azampay
Short Description Laravel Azampay
License MIT
Homepage https://github.com/alphaolomi/laravel-azampay
Informations about the package laravel-azampay
Laravel Axampay provides an expressive, fluent interface to Azampay's payments services. It handles almost all of the boilerplate payments & billing so you don't have to.
Installation
Prerequisites
- PHP 8.1+
- Laravel v10+
- Composer
You can install the package via Composer:
You can publish the config file with:
Setup
Add the following to your .env file
Usage
Checkout API
MNO Checkout
Mobile checkout using AzampayService
Class
NOTE: Configs are loaded automatically.
Response
MNO checkout using Facade Class
Response
Bank Checkout
Bank checkout using AzampayService Class
Response
Bank checkout using Facade Class
Get payment partners
Get payment partners using AzampayService Class
Get payment partners using Facade Class
Post Checkout
Post checkout using AzampayService Class
Post checkout using Facade Class
Callback route and event
The packages has a route for handling callback from Azampay. The
route is /api/v1/Checkout/Callback
and named checkout_payment_callback
.
Whenever a callback is received from Azampay, the package will
dispatch Event AzampayCallback::class
. You can create a
listener and do further processing with the callback data which will
be passed when the event get dispatched.
Registering the route
This package has a route for handling callback from Azampay. Its enabled by default.
On your App\Providers\EventServiceProvider
register a listener
for AzampayCallback::class
event.
In your App\Listeners\AzampayCallbackListener
class, add the update the handle
method to handle the event.
Now, whenever a callback is received from Azampay, the package will call the handle
method of the AzampayCallbackListener
class. with the callback data.
Disbursement API
Create transfer
Create transfer using AzampayService Class
Create transfer using Facade Class
Name lookup
Name lookup using AzampayService Class
Name lookup using Facade Class
Get transaction status
Get transaction status using AzampayService Class
Get transaction status using Facade Class
Azampay documentation
You can find more details about azampay on their documentation in this link Azampay Documentation.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Alpha Olomi
- Omakei
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Support us
If you find this package useful, you can support us by staring this repository and sharing it with others.
All versions of laravel-azampay with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16