How chennamsettysashank34-ux/dhwani-pay works
DhwaniPay is a merchant-facing mobile soundbox and payment-management app. The main workflow detects incoming payment notifications, bridges them into the app for event tracking and spoken announcements; merchants can also create UPI QR collections and manage expenses, settings, and account sync. The README documents additional gateway and cloud features whose detailed runtime wiring is only partly sampled, so those links are shown only where documented. Several screens are unsampled; their subsystem presence follows the README and file tree.
Main entry points: AppContext.tsx App state and speech · collect.tsx Collect payment · supabase.ts Supabase client · PaymentListenerModule.kt Native event bridge
Components 29
Merchant app
- Home dashboard
app/(tabs)/index.tsx - Authentication
app/auth.tsx - Setup and diagnostics
app/setup.tsx - Merchant settings
app/(tabs)/settings.tsx - App state and speech
context/AppContext.tsx - Shared UI components
components/ui.tsx - Theme tokens
constants/theme.ts
Payment soundbox
- Notification listener
android-native/PaymentNotificationListenerService.kt - Android listener service
android/app/src/main/java/in/dhwanipay/app/PaymentNotificationListenerService.kt - Native event bridge
modules/payment-listener/android/src/main/java/in/dhwanipay/app/modules/PaymentListenerModule.kt - Listener JS API
modules/payment-listener/index.ts
Merchant ledger
- Payment activity
app/(tabs)/activity.tsx - Event details
app/event/[id].tsx - Expense manager
app/(tabs)/expenses.tsx - Local persistence
utils/storage.ts
UPI collection
- Collect payment
app/collect.tsx - UPI QR renderer
components/UPIQRCode.tsx - QR matrix encoder
utils/qrMatrix.ts - UPI intent launcher
utils/upi.ts - QR vault
app/qr-vault.tsx - QR presets
constants/vaultPresets.ts
Cloud services
- Supabase client
lib/supabase.ts - Supabase database
- Gateway service
server/src/gatewayService.ts - Gateway server entry
server/src/index.ts
Other components
- Merchant
- Android payment apps
- Webhook providers
- Connected app clients
Connections 30
- Merchant → Home dashboard: uses
README.md - Merchant → Authentication: signs in
README.md - Home dashboard → App state and speech: reads app state
app/(tabs)/index.tsx - Authentication → App state and speech: authenticates through
- Merchant → Setup and diagnostics: configures
README.md - Merchant → Merchant settings: manages
README.md - Android payment apps → Notification listener: delivers notifications
README.md - Notification listener → Native event bridge: broadcasts payment
README.md - Android listener service → Native event bridge: broadcasts payment
- Native event bridge → Listener JS API: emits event
- Listener JS API → App state and speech: feeds payment events
context/AppContext.tsx - App state and speech → Local persistence: persists state
context/AppContext.tsx - App state and speech → Supabase client: syncs records
context/AppContext.tsx - App state and speech → Payment activity: provides events
- Payment activity → Event details: opens detail
README.md - App state and speech → Expense manager: provides expense state
- App state and speech → Supabase client: inserts expenses
context/AppContext.tsx - Supabase client → Local persistence: stores config and session
lib/supabase.ts - Supabase client → Supabase database: reads and writes
- Merchant → Collect payment: creates collection QR
README.md - Collect payment → UPI QR renderer: renders payment QR
app/collect.tsx - UPI QR renderer → QR matrix encoder: generates matrix
components/UPIQRCode.tsx - Collect payment → UPI intent launcher: launches payment intent
app/collect.tsx - Collect payment → QR vault: selects saved QR
app/collect.tsx - Collect payment → QR presets: uses presets
app/collect.tsx - Webhook providers → Gateway server entry: sends signed webhooks
- Gateway server entry → Gateway service: routes gateway work
- Gateway service → Connected app clients: broadcasts settlements
README.md - Connected app clients → App state and speech: delivers live updates
- Shared UI components → Theme tokens: uses palette