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. Today we will go through one of our Paytm payment gateway extension which was made for bagisto users. Before starting this, we all know Paytm is a popular Paytm gateway in India. It provides you with both UPI payment, card, net banking payment collection features in their gateway.
Lets start our steps:
Automatic Installation
1. Use command prompt to run this package composer require wontonee/paytm
2. Now open config/app.php and register paytm provider.
'providers' => [
// Paytm provider
Wontonee\Paytm\Providers\PaytmServiceProvider::class,
]
3. Now go to package/Webkul/Admin/src/Resources/lang/en copy these line at the bottom end of code.
'merchant-id' => 'Merchant Id',
'merchant-key' => 'Merchant Key',
'websitestatus' => 'Website',
'industrytype' => 'Industry Type',
'paytmstatus' => 'Status',
'callback-url' => 'Call Back URL'
4. Now go to your bagisto admin section admin/configuration/sales/paymentmethods you will see the new payment gateway paytm.
5. Now open app\Http\Middleware\VerifyCsrfToken.php and add this route to the exception list.
protected $except = [
'/paytmcheck'
];
6. Now run php artisan config:cache
package and create a folder name Wontonee/Paytm/ upload src folder inside this path. config/app.php and register paytm provider.
'providers' => [
// Paytm provider
Wontonee\Paytm\Providers\PaytmServiceProvider::class,
]
autload psr-4.
"autoload": {
"psr-4": {
"Wontonee\\Paytm\\": "packages/Wontonee/Paytm/src"
}
}
package/Webkul/Admin/src/Resources/lang/en copy these line at the bottom end of code.
'merchant-id' => 'Merchant Id',
'merchant-key' => 'Merchant Key',
'websitestatus' => 'Website',
'industrytype' => 'Industry Type',
'paytmstatus' => 'Status',
'callback-url' => 'Call Back URL'
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 paytm.
9. Now open app\Http\Middleware\VerifyCsrfToken.php and add this route to the exception list.
protected $except = [
'/paytmcheck'
];
Related articles
AI Spending Is Set to Reach $2.7 Trillion in 2026: What It Means for Businesses
Global AI spending is forecast to reach $2.7 trillion in 2026, highlighting how quickly artificial intelligence is moving from experimentation into business infrastructure and everyday software.
Open-Weight AI vs Closed AI: Why Tech Giants Are Fighting Over the Future of Artificial Intelligence
The artificial intelligence race is no longer just about building the most powerful models. It has now expanded into a debate over who should have access to those models.
Anthropic Launches Claude Sonnet 5: Faster Coding, Smarter AI Agents, and a New Era for Enterprise AI
Anthropic has officially introduced Claude Sonnet 5, bringing major improvements in coding, AI agents, reasoning, and enterprise productivity. Here's everything you need to know.

