Repository navigation
feat(ops): live payments readiness, Meta WhatsApp auth & automated community onboarding - #49
Open
Satelink-Protocol wants to merge 2 commits into
Open
Satelink-Protocol wants to merge 2 commits into
Satelink-Protocol wants to merge 2 commits into
Conversation
…13-journey QA suite - Add migration 025_community_onboarding.sql with user_onboarding table - Implement lib/services/community-onboarding.js with idempotent Telegram numeric ID binding and WhatsApp channel follow tracking - Expose attendee /api/me/onboarding, /api/onboarding/track, and admin /api/admin/onboarding endpoints with PII masking - Add /api/admin/payments and /api/admin/payments/:id/audit endpoints for financial reconciliation visibility - Add test suites test/community-onboarding.test.js and test/production-quality-assurance.test.js covering all 13 real-user journeys - Retain fail-closed live payment and WhatsApp flags until verified production credentials are provided
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…nd bot deep links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements production-readiness improvements for NIGHTLIFEZ across all four required operational workstreams:
UPI Payment Readiness & Reconciliation Visibility:
GET /api/admin/paymentsandGET /api/admin/payments/:id/auditproviding financial ledger transparency, status filters, and paise aggregations.ENABLE_LIVE_PAYMENTS=false) and UPI checkout (UPI_CHECKOUT_ENABLED=false) remain safely locked in production until merchant credentials and provider contracts are approved.Meta WhatsApp Cloud API Authentication:
Automated Community Onboarding:
migrations/025_community_onboarding.sql(user_onboardingtable).lib/services/community-onboarding.jssupporting Telegram numeric ID storage, welcome message delivery via@Nightlifez_botonly upon authorization, official community link dispatch, and WhatsApp channel follow tracking without false claims of membership.GET /api/me/onboarding,POST /api/onboarding/track) and admin inspection (GET /api/admin/onboarding) with strict PII masking.Production Quality Assurance:
test/community-onboarding.test.js(6/6 tests passing).test/production-quality-assurance.test.jsverifying all 13 real-user journeys from Telegram/WhatsApp signup, multi-session switching, account linking, free booking, paid UPI checkout/webhook, duplicate protection, expiry, admin refund, to admin audit inspection (13/13 tests passing).test/migrations.test.js(23/23 migrations passing).