Download the PHP package triverla/laravel-opay without Composer
On this page you can find all versions of the php package triverla/laravel-opay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download triverla/laravel-opay
More information about triverla/laravel-opay
Files in triverla/laravel-opay
Informations about the package laravel-opay
laravel-opay
A Laravel package to seamlessly integrate Opay payment APIs to any new or existing laravel application.
Installation
PHP 7.2+ or HHVM 3.3+, and Composer are required.
To get the latest version of Laravel Opay, simply require it
Or add the following line to the require block of your composer.json
file.
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
Once Laravel Opay is installed, you need to register the service provider. Open up config/app.php
and add the following to the providers
key.
If you use Laravel >= 5.5 you can skip this step and go to
configuration
Triverla\LaravelOpay\OpayServiceProvider::class
Also, register the Facade like so:
Configuration
You can publish the configuration file using this command:
A configuration file opay.php
with some sensible defaults will be placed in your config
directory as displayed below:
Usage
Open your .env file and add the following keys. You can get them at (https://merchant.opaycheckout.com/account-details) Under the API keys & Webhook tab:
- import the Opay Facades with the import statement below;
- Also import the FailedRequestException that handles the exceptions thrown from failed requests. This exception returns the corresponding Opay error message and code
Other methods include
Testing
Todo
- Webhook Events
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
Bugs & Issues
If you notice any bug or issues with this package kindly create and issues here ISSUES
Security
If you discover any security related issues, please email [email protected].
How can I thank you?
Why not star the github repo and share the link for this repository on Twitter or other social platforms.
Don't forget to follow me on twitter!
Thanks! Benaiah Yusuf
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-opay with dependencies
illuminate/support Version ~6|~7|~8|~9|^10.0
guzzlehttp/guzzle Version ~6|~7|~8|~9
ext-json Version *