bagisto payumoney gateway by wontonee

Bagisto is an open-source Laravel eCommerce application. Bagisto is one of the popular eCommerce applications in the Laravel framework. From the last few years, bagisto made several well-known establishments in the field of the eCommerce section. 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.

Lets start our steps:

Automatic Installation

1. Use command prompt to run this package composer require wontonee/payu

2. Now open config/app.php and register payu provider.


'providers' => [
       // Payu provider
        Wontonee\Payu\Providers\PayuServiceProvider::class,
]

3. 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',

4. Now go to your bagisto admin section admin/configuration/sales/paymentmethods you will see the new payment gateway payu.

5. Now open app\Http\Middleware\VerifyCsrfToken.php and add this route to the exception list.


protected $except = [
                '/payu-success',
                '/payu-failure'
           ];

6. Now run php artisan config:cache

Manual Installation

1. Download the zip folder from the github repository.
https://github.com/wontone18/payu-payment-gateway-bagisto-laravel.git

2. Unzip the folder and go to your bagisto application path package and create a folder name Wontonee/Payu/ upload src folder inside this path.

3. Now open config/app.php and register payu provider.


'providers' => [
       // Payu provider
        Wontonee\Payu\Providers\PayuServiceProvider::class,
]

4. Now open composer.json and go to autload psr-4.

"autoload": {
        "psr-4": {
        "Wontonee\\Payu\\": "packages/Wontonee/Payu/src"
        }
    }

5. 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',

6. Now open the command prompt and run composer dump-autoload.

7. Now run php artisan config:cache

8. Now go to your bagisto admin section admin/configuration/sales/paymentmethods you will see the new payment gateway payu.

9.  Now open app\Http\Middleware\VerifyCsrfToken.php and add this route to the exception list.


protected $except = [
        '/payu-success',
        '/payu-failure'
];

×How can I help you?