Bagisto Payu Payment Gateway
Payu is a popular payment gateway in india. This package provides a additional strong help for the user to use the payu payment gateway in their Bagisto laravel ecommerce application.
Automatic Installation
- Use command prompt to run this package
composer require wontonee/payu
- Now open
config/app.php
and register payu provider.
'providers' => [
// Payu provider
Wontonee\Payu\Providers\PayuServiceProvider::class,
]
- Now go to
package/Webkul/Admin/src/Resources/lang/en
copy these line at the bottom end of code.
'payu-merchant-key' => 'Merchant Key',
'payu-salt-key' => 'Salt Key',
'payu-websitestatus' => 'Sandbox/Live',
- Now go to your bagisto admin section
admin/configuration/sales/paymentmethods
you will see the new payment gateway payu. - Now open
app\Http\Middleware\VerifyCsrfToken.php
and add this route to the exception list.
protected $except = [
'/payu-success',
'/payu-failure'
];
- Now run
php artisan config:cache
Manual Installation
- Download the zip folder from the github repository.
- Unzip the folder and go to your bagisto application path
package
and create a folder nameWontonee/Payu/
uploadsrc
folder inside this path. - Now open
config/app.php
and register payu provider.
'providers' => [
// Payu provider
Wontonee\Payu\Providers\PayuServiceProvider::class,
]
- Now open composer.json and go to
autoload psr-4
.
"autoload": {
"psr-4": {
"Wontonee\\Payu\\": "packages/Wontonee/Payu/src"
}
}
- Now go to
package/Webkul/Admin/src/Resources/lang/en
copy these line at the bottom end of code.
'payu-merchant-key' => 'Merchant Key',
'payu-salt-key' => 'Salt Key',
'payu-websitestatus' => 'Sandbox/Live',
- Now open the command prompt and run
composer dump-autoload
. - Now run
php artisan config:cache
- Now go to your bagisto admin section
admin/configuration/sales/paymentmethods
you will see the new payment gateway payu. - Now open
app\Http\Middleware\VerifyCsrfToken.php
and add this route to the exception list.
protected $except = [
'/payu-success',
'/payu-failure'
];
Troubleshooting
- if anybody facing after placing a order you are not redirecting to payment gateway and getting a route error then simply go to
bootstrap/cache
and delete all the cache files.
For any help or customisation https://www.wontonee.com or email us [email protected]