violet-waves / bagisto-razorpay
Razorpay payment gateway for bagisto laravel open source ecommerce platform.
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 1
pkg:composer/violet-waves/bagisto-razorpay
Requires
- razorpay/razorpay: ^2.0
 
This package is not auto-updated.
Last update: 2025-10-25 15:37:33 UTC
README
Razorpay is a popular payment gateway in India. This package provides strong support for users to integrate the Razorpay payment gateway into their Bagisto Laravel e-commerce applications.
Compatibility Notice
Support Bagisto v2.3.4 and above
Installation
- Use the command prompt to install this package:
 
composer require violet-waves/bagisto-razorpay
- Open 
bootstrap/providers.phpand register the Razorpay provider by adding the following line to the array: 
return [ // ... other providers ... // Razorpay provider VioletWaves\Razorpay\Providers\RazorpayServiceProvider::class, ];
- 
Navigate to the
admin panel -> Configure/Payment Methods, where Razorpay will be visible at the end of the payment method list. - 
Add the Razorpay payment gateway route to CSRF token validation exception list in
bootstrap/app.phpinsidewithoutMiddleware(function (Middleware $middleware)array: 
$middleware->validateCsrfTokens(except: [ '/razorpaycheck', ]);
- Clear the configuration cache:
 
php artisan config:cache
Troubleshooting
- If you encounter an issue where you are not redirected to the payment gateway after placing an order and receive a route error, navigate to 
bootstrap/cacheand delete all cache files.