killallskywalker / eghl-laravel
There is no license information available for the latest version (dev-main) of this package.
Package to integrate EGHL payment gateway with laravel .
dev-main
2021-04-10 04:50 UTC
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-03-10 11:05:41 UTC
README
EGHL is a package to that contain facades to allow integration with EGHL payment gateway . As for now this package only have two method which is to generate query url that use to make a request to eghl and validate payment response .
Installation
composer require killallskywalker/eghl-laravel
Usage
Set the env first . Which is
EGHL_PASSWORD = your account password EGHL_SERVICE_ID = your service id EGHL_SERVICE_URL = your service url MERCHANT_RETURN_URL = return url MERCHANT_APPROVAL_URL = approval url MERCHANT_UNAPPROVAL_URL = unapproval url MERCHANT_CALLBACK_URL = callback url
use Eghl; // For the data , array of parameter require . Can refer to their documentation what is required . // To process payment by generating url that will be request to Eghl $url = Eghl::processPaymentRequest($data); // To validate return callback , return true if valid , and otherwise if not valid $status = Eghl::processPaymentRequest($data);
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.