LaravelPackages.net
Acme Inc.
Toggle sidebar
killallskywalker/eghl-laravel

Package to integrate EGHL payment gateway with laravel .

267
0
About killallskywalker/eghl-laravel

killallskywalker/eghl-laravel is a Laravel package for package to integrate eghl payment gateway with laravel .. It currently has 0 GitHub stars and 267 downloads on Packagist. Install it with composer require killallskywalker/eghl-laravel. Discover more Laravel packages by killallskywalker or browse all Laravel packages to compare alternatives.

Last updated

EGHL

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.

License

MIT

Star History Chart