A Laravel package that wraps ePay.bg's API.
- Download .zip file or install via composer
$ composer require kondov/epaywrapper
- Add the EpayWrapperServiceProvider to the providers array in app.php
Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, Kondov\EpayWrapper\EpayWrapperServiceProvider::class, /* * Application Service Providers... */
- Add the facade to the aliases array in app.php
'Epay' => Kondov\EpayWrapper\Facades\Epay::class
- Set up your merchant information in the config.php file in the package
'MERCHANT_SECRET_KEY' => '', 'MERCHANT_IDENTIFIER' => '', 'SUBMIT_URL' => 'https://devep2.datamax.bg/ep2/epay2_demo/', 'URL_OK' => '', 'URL_CANCEL' => '', 'PAGE' => 'paylogin'