How kennethkpn/yourpass1 works
YourPass is an event discovery and ticketing site: visitors browse events, choose tickets, pay through FedaPay, and receive confirmation/ticket details. The excerpts establish event data, browser payment initiation, payment creation, webhook persistence/email, and transaction polling. Other visible pages and API routes indicate account, contact, newsletter, dashboard, and ticket capabilities; their exact runtime wiring is not fully shown, so uncertain links are omitted.
Main entry points: main.js Site interactions · pay-fedapay.js Payment creation · webhook.js Payment webhook · events.html Event pages
Components 22
Event discovery
- Event pages
events.html - Event details
event-detail.html - Event catalog
js/events-data.js - Site interactions
js/main.js
Accounts
- Sign-in pages
connexion.html - Auth helpers
supabase-auth.js - Profile widget
js/profile.js - User dashboard
dashboard.html
Ticket checkout
- Checkout page
checkout.html - Payment creation
api/pay-fedapay.js - FedaPay
- Payment success
success.html - Transaction verify
api/verify/[id].js - Payment webhook
api/webhook.js - Ticket delivery
api/send-ticket.js - Supabase
Customer services
- Resend email
- Contact form
contact.html - Contact endpoint
api/Contact.js - Newsletter endpoint
api/Newsletter.js - Health endpoint
api/health.js
Other components
- Visitor
Connections 23
- Visitor → Event pages: browses
- Event pages → Event catalog: reads catalog
- Visitor → Event details: selects event
- Site interactions → Event catalog: looks up events
- Visitor → Sign-in pages: signs in
- Auth helpers → Supabase: authenticates
supabase-auth.js - Profile widget → Supabase: reads auth
- Visitor → Checkout page: starts checkout
- Site interactions → Payment creation: creates payment
js/main.js - Payment creation → FedaPay: creates transaction
api/pay-fedapay.js - Payment creation → FedaPay: requests token
api/pay-fedapay.js - FedaPay → Payment success: returns browser
- Payment success → Transaction verify: polls status
api/verify/[id].js - Transaction verify → FedaPay: fetches transaction
api/verify/[id].js - FedaPay → Payment webhook: sends event
api/webhook.js - Payment webhook → Supabase: stores ticket
api/webhook.js - Payment webhook → Resend email: sends confirmation
api/webhook.js - Visitor → Contact form: sends inquiry
- Contact form → Contact endpoint: submits form
- Contact endpoint → Resend email: emails inquiry
api/Contact.js - Site interactions → Newsletter endpoint: submits signup
- Newsletter endpoint → Supabase: upserts subscriber
api/Newsletter.js - Visitor → User dashboard: views account