ONDC Buyer App Package Installation Guide

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:

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.

How Buyer App and Seller App Works:

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:

  1. A buyer searches for a product on the Buyer App.
  2. The ONDC gateway fetches matching listings from multiple Seller Apps.
  3. The buyer places an order and pays through the Buyer App.
  4. The Seller App receives the order, processes it, and ships the product.
  5. Updates like order status and delivery tracking are shared between both apps via the ONDC protocol.

Prerequisites for ONDC Buyer App:

Minimum system requirements that are required before installing the ONDC Buyer App on Bagisto:

How to Install ONDC Buyer App Package:

Step 1: Add Ondc folder extracted from given package zip

  1. Navigate to your Bagisto installation’s packages/Webkul directory.
  2. Copy the ONDC folder from the provided package zip into this directory

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:

Note : Always keep your keys and secrets secure. Never commit them to public repositories.

Step 3: Register the Service Provider

  1. Open config/app.php and add the ONDC service provider to the file.
  2. Add the following line to the providers array:
Webkul\Ondc\Providers\OndcServiceProvider::class,

Step 4: Update composer.json

  1. Open the root composer.json file.
  2. Add the following line to the autoload section under psr-4:
"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

Kindly refer the following tips for a Smooth Installation:

Conclusion

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.

Support

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]

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

success

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home