korotkiewicz / payu
Simplify Integration PayU in Laravel
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/korotkiewicz/payu
Requires
- laravel/framework: 5.8.*
- openpayu/openpayu: ^2.2
README
Simplify Integration PayU in Laravel
Installation
Via [Composer][link-composer]
composer require korotkiewicz/payu
Configuration
Add to your config/app.php
'providers' => [ Korotkiewicz\PayU\PayUServiceProvider::class ]
php artisan config:clear php artisan vendor:publish
Your .env file must end up looking like:
PAYU_PRODUCTION_MODE=false PAYU_METCHANT_ID="" PAYU_SIGNATURE_KEY="" PAYU_CLIENT_ID="" PAYU_CLIENT_SECRET="" PAYU_CONTINUE_URL="" PAYU_NOTIFY_URL="" PAYU_SHOP_NAME=""
Add you notify url to App\Http\Middleware\VerifyCsrfToken exclude list ($except):
public function __construct(Application $app, Encrypter $encrypter) { $this->except[] = config('payu.notify_url'); parent::__construct($app, $encrypter); }