Updated 28 May 2025
ONDC Buyer App Package Installation Guide: Installing the ONDC buyer app package can be a complex task for some users.
In this article, we will walk you through the step-by-step process involved in installing the ONDC Buyer app package on bagisto.
By installing the buyer app package, you can make your bagisto store a part of ONDC network, opening up new opportunities for business growth and better customer reach.
ONDC buyer app is an application/website that enables customers to access and interact with the Open Network for Digital Commerce (ONDC).
It allows buyers to compare prices, place orders, make payments, and track deliveries of the products/services from multiple sellers on a single platform.
ONDC Seller App:
ONDC seller app is an application that enables sellers to access and list their products on Open Network for Digital Commerce (ONDC).
It allows sellers to track all the the order activities, including order confirmations, cancellations, returns, payments, and delivery status ensuring full visibility and control over their sales process.
ONDC is a network that connects multiple buyer apps with multiple seller apps such that if a product is listed on any one of the seller apps, it will be listed on all the buyer apps.
How they work together:
Prerequisites for ONDC Buyer App:
Minimum system requirements that are required before installing the ONDC Buyer App on Bagisto:
Step 1: Add Ondc folder extracted from given package zip
Step 2: Configure ONDC API Keys and Settings
First, the admin will have to enable the Bagisto Store for ONDC services.
Then, Under ONDC details, the admin has to specify:
Signature Details
Under signature details tab, the admin has to specify:
Configure BAP Info
Under this tab, the admin has to specify:
Redis Server
Under the Redis Server tab, the admin has to specify:
Google Map
Under this tab, the admin has to specify Google Map API key.
Razorpay
Under the Razorpay tab, the admin has to specify:
Stripe
Under this tab, the admin has to specify:
Help Desk
Under the Help Desk tab, the admin has to specify:
RSF
Under this tab, the admin has to specify:
IGM
Under the IGM tab, the admin has to specify:
Logs
Under this tab, the admin has to specify:
Step 3: Register the Service Provider
Webkul\Ondc\Providers\OndcServiceProvider::class,
Step 4: Update composer.json
"Webkul\\Ondc\\": "packages/Webkul/Ondc/src"
Step 5: Run Composer Dump-Autoload
Execute the following command in your terminal:
composer dump-autoload
Step 6: Optimize the Application
Run the following command to optimize your application:
php artisan optimize
Step 7: Publish Vendor Assets
Finally, publish the vendor assets by running:
php artisan vendor:publish --force
When prompted, select the Ondc provider and press Enter.
Step 8: Apply Code Modifications
/packages/Webkul/Product/src/Helpers/Indexers/Inventory.php.
$this->orderItemRepository->manageInventory($orderItem);
These changes help avoid conflicts with bagisto’s inventory management.
Step 9: Run Database Migrations
Apply the new database schema:
php artisan migrate
Step 10: Install Required Libraries
Install payment and support libraries:
composer require stripe/stripe-php:13.0 composer require laravel/cashier composer require razorpay/razorpay:2.* composer dump-autoload
Step 11: Set Up Catalog Refresh
https://{{ base_url }}/ondc/refresh
command=php /home/bagisto/bagisto/artisan queue:work --queue=priority,default database --sleep=3 --tries=3 --max-time=3600
https://{{ base_url }}/ondc/logs
Step 12: Redis Configuration
Update your .env file with the correct Redis port:
Step 13: Few miscellaneous points
php artisan storage:link
composer update composer dump-autoload php artisan vendor:publish --force php artisan optimize:clear php artisan cache:clear
By following the above steps, you will achieve a fully integrated ONDC Buyer App with your Bagisto store, supporting advanced e-commerce and payment features.
For any kind of technical assistance or query, please raise a ticket at https://webkul.uvdesk.com or send us a mail at [email protected]
Be the first to comment.