A Razorpay payment gateway package for Bagisto 2.x, built for the Indian market.
- Creates a Razorpay order on checkout and opens the payment popup
- Verifies payment signature server-side before creating the Bagisto order
- Auto-captures payment and generates invoice on success
- Redirects back to cart with error message on failure
- Configurable from Bagisto admin panel (Key ID, Secret, Test Mode, Logo)
- Bagisto 2.x
- PHP 8.1+
razorpay/razorpaySDK
Add to your composer.json:
"repositories": [
{
"type": "path",
"url": "packages/ba6ul/Razorpay"
}
],
"require": {
"ba6ul/razorpay": "*"
}Then run:
composer update
php artisan optimize:clearGo to Admin > Configuration > Sales > Payment Methods > Razorpay and fill in:
- Key ID - from your Razorpay dashboard
- Key Secret - from your Razorpay dashboard
- Test Mode - enable for development
Get your keys at dashboard.razorpay.com
- Amount is converted to paise automatically
- Signature verification uses
razorpay_order_idstored in session during checkout - Invoice is created immediately on successful payment
- Built and used in production at Reupap