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.
- Use command prompt to run this package
composer require wontonee/razorpay
- Now open
config/app.php
and register razorpay provider.
'providers' => [
// Razorpay provider
Wontonee\Razorpay\Providers\RazorpayServiceProvider::class,
]
- 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',
- Now go to your bagisto admin section
admin/configuration/sales/paymentmethods
you will see the new payment gateway razorpay. - Now open
app\Http\Middleware\VerifyCsrfToken.php
and add this route to the exception list.
protected $except = [
'/razorpaycheck',
];
- Now run
php artisan config:cache
- Download the zip folder from the github repository.
- Unzip the folder and go to your bagisto application path
package
and create a folder nameWontonee/Razorpay/
uploadsrc
folder inside this path. - Now open
config/app.php
and register razorpay provider.
'providers' => [
// Razorpay provider
Wontonee\Razorpay\Providers\RazorpayServiceProvider::class,
]
- Now open composer.json and go to
autoload psr-4
.
"autoload": {
"psr-4": {
"Wontonee\\Razorpay\\": "packages/Wontonee/Razorpay/src"
}
}
- 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',
- 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 razorpay. - Now open
app\Http\Middleware\VerifyCsrfToken.php
and add this route to the exception list.
protected $except = [
'/razorpaycheck',
];
- 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]