# EasyPay Tickets — cPanel Node.js deployment

This package targets a cPanel Node.js application at `ticket.esypay.app`.

## Application settings

- Node.js version: 22.13 or newer
- Application mode: Production
- Application root: `ticket_app`
- Application URL: `ticket.esypay.app`
- Startup file: `server.js`

## Install and build

Run these commands from the application root:

```bash
npm ci
npm run build
```

Then restart the Node.js application from cPanel.

## Environment variables

Configure secrets in the cPanel Node.js application environment. Never put
live keys in the source archive.

- `NODE_ENV=production`
- `PAYMENTS_ENABLED=false` — keep disabled until the launch checklist is complete
- `STRIPE_SECRET_KEY` — server-side Stripe secret key
- `STRIPE_WEBHOOK_SECRET` — signing secret for
  `https://ticket.esypay.app/api/stripe/webhook`

Do not set `PAYMENTS_ENABLED=true` until Connect onboarding, seller transfer
release, webhook fulfillment, inventory reconciliation, authentication, and
refund handling have been implemented and reviewed.
