teepluss/epay
Larablocks Analysis
teepluss/epay works with any PHP project: the latest release (1.0.1, Jun 30, 2015) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Jun 30, 2015)
- 5 downloads a month (needs 10,000)
- 4 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 30, 2015.
- No releases in the last 12 months.
- First released: Jun 29, 2015.
- Monthly downloads: 5.
- 1 open issue on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require teepluss/epay |
|
| Latest Version: | 1.0.1 |
| PHP: | >=5.3.0 |
| License: | MIT |
| Last Updated: | Jun 30, 2015 |
| Links: | GitHub · Packagist |
Epay for Laravel 4
Epay is deprecated. Please use the Gateway
Epay is payment gateway adapters.
Installation
To get the lastest version of Epay simply require it in your composer.json file.
"teepluss/epay": "dev-master"
You'll then need to run composer install to download it and have the autoloader updated.
Once Epay is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.
'providers' => array(
'Teepluss\Epay\EpayServiceProvider'
)
Epay also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file.
'aliases' => array(
'Epay' => 'Teepluss\Epay\Facades\Epay'
)
Usage
Generate payment form.
$adapter = Epay::factory('paypal');
$adapter->setSandboxMode(true);
$adapter->setSuccessUrl('http://www.domain/foreground/success')
->setCancelUrl('http://www.domain/foreground/cancel')
->setBackendUrl('http://www.domain/background/invoice/00001');
$adapter->setMerchantAccount('demo@gmail.com');
$adapter->setLanguage('TH')
->setCurrency('THB');
$adapter->setInvoice(00001)
->setPurpose('Buy a beer.')
->setAmount(100);
$adapter->setRemark('Short note');
$generated = $adapter->render();
var_dump($generated);
Checking foregound process.
$adapter = Epay::factory('paypal');
$adapter->setSandboxMode(true);
$adapter->setMerchantAccount('demo@gmail.com');
$adapter->setInvoice(00001);
$result = $adapter->getFrontendResult();
var_dump($result);
Checking background process (IPN)
$adapter = Epay::factory('paypal');
$adapter->setSandboxMode(true);
$adapter->setMerchantAccount('demo@gmail.com');
$adapter->setInvoice(00001);
$result = $adapter->getBackendResult();
var_dump($result);
Support or Contact
If you have some problem, Contact teepluss@gmail.com
Related Packages
A unified payment gateway package for Laravel supporting 21 payment providers
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.1 | >=5.3.0 | MIT | |
| 1.0.0 | >=5.3.0 | MIT |
