# Cloudflare Pages deployment

1. Open Cloudflare Dashboard → Workers & Pages.
2. Create a Pages application using Direct Upload.
3. Upload the final ZIP. `index.html` and `_worker.js` are already at the archive root.
4. Optional: create D1 database `PAYMENT_DB` and execute `database/schema.sql`.
5. Add production secrets only in Cloudflare settings; never place provider keys in source files.

## Optional environment variables

- `WEBHOOK_DEMO_TOKEN` — changes the local webhook demonstration token.
- `GITHUB_TOKEN` — increases GitHub API limits for repository statistics.
- `PAYMENT_DB` — optional D1 binding for the example payment record.

## Real payments

Deploy Hyperswitch using its official instructions or managed offering, configure valid provider accounts, and replace the simulator endpoints with authenticated server-to-server calls.
