O

ONDC Ride

Open Network for Mobility

Buyer App
๐ŸŒ

About ONDC Ride

A buyer-side ride hailing application integrated with ONDC (Open Network for Digital Commerce) using the Beckn Protocol.

What is ONDC?

ONDC (Open Network for Digital Commerce) is India's government-backed open protocol initiative that enables any buyer app (BAP) to discover and transact with any seller app (BPP) without being locked into a single platform. This app implements the BAP (Buyer App Platform) side for the ONDC:TRV10 mobility domain.

Beckn Protocol Flow

๐Ÿ”
/searchStep 1

BAP broadcasts intent to ONDC gateway, which fans out to all registered mobility BPPs

โœ…
/selectStep 2

BAP sends select request to chosen BPP to get a confirmed quote

๐Ÿ“‹
/initStep 3

BAP initializes the order with billing details and payment terms

๐ŸŽฏ
/confirmStep 4

BAP confirms the booking; BPP assigns driver and sends on_confirm callback

๐Ÿ“ก
/statusStep 5

BAP polls for ride status updates throughout the trip lifecycle

โŒ
/cancelStep 6

BAP can send cancel request at any point before ride completion

Configuration (Environment Variables)

Set these in your Netlify site settings to connect to the live ONDC network. Without them, the app runs in demo mode with mock providers.

ONDC_BAP_ID

Your registered BAP Subscriber ID (e.g. buyer-app.example.com)

ONDC_BAP_URI

Your BAP's public URI for receiving callbacks

ONDC_GATEWAY_URL

ONDC Gateway URL (staging or production)

ONDC_CITY_CODE

City code in ONDC format (e.g. std:080 for Bengaluru)

ONDC_SUBSCRIBER_KEY_ID

Your key ID registered with ONDC network

ONDC_PRIVATE_KEY

Base64-encoded Ed25519 private key for signing requests

Tech Stack

TanStack StartReact 19Tailwind CSS v4Drizzle ORMNetlify DatabaseNetlify FunctionsBeckn Protocol v1.2.0ONDC:TRV10
Hosted on Netlify ยท ONDC:TRV10 Mobility Domain