Technology

Bagisto Laravel Razorpay Extension

Bagisto Laravel Razorpay Extension

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. Razorpay is a popular payment gateway in india. This package provides a additional strong help for the user to use the Razorpay payment gateway in their Bagisto laravel ecommerce application.

Automatic Installation

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

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

    
     'providers' => [
       // Razorpay provider
        Wontonee\Razorpay\Providers\RazorpayServiceProvider::class,
]
    
   

3. Now go to package/Webkul/Admin/src/Resources/lang/en copy these line at the bottom end of code.

    
     'key-id'                      => 'Key Id',
'key-secret'                      => 'Key Secret',
    
   

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

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

    
     protected $except = [
                 '/razorpaycheck',
           ];
    
   

6. Now run php artisan config:cache

Manual Installation

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

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

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

    
     'providers' => [
       // Razorpay provider
        Wontonee\Razorpay\Providers\RazorpayServiceProvider::class,
]
    
   
4. Now open composer.json and go to autload psr-4.
    
     "autoload": {
    "psr-4": {
    "Wontonee\\Razorpay\\": "packages/Wontonee/Razorpay/src"
    }
}
    
   
5. Now go to package/Webkul/Admin/src/Resources/lang/en copy these line at the bottom end of code.
    
     'key-id'                      => 'Key Id',
'key-secret'                      => 'Key Secret',
    
   

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 razorpay.

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

    
     protected $except = [
        '/razorpaycheck',
];
    
   
teamwontonee

Recent Posts

Laravel And Vue Contact Form

In this tutorial we will learn about how to create a contact form in vue…

2 years ago

Basics Of Laravel And VUE JS

Laravel is a popular open-source framework developed by Taylor otwell for PHP. Laravel comes with…

2 years ago

Google Verified SMS

SMS play a vital role in our day-to-day life. For instance, if we want to…

3 years ago

Bagisto Laravel Paytm Extension

Bagisto is an open-source Laravel eCommerce application. Bagisto is one of the popular eCommerce applications…

3 years ago

Tweaks And Tips to secure your wordpress website?

From the last few years website design is quite easy and convenient with various content…

3 years ago

How to convert your HTML website into WordPress? – Part 1

We all know WordPress is a well-known content management system for our website these days.…

3 years ago

This website uses cookies.