diff --git a/.env.example b/.env.example index 58f6095..0bb0da4 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,9 @@ NUXT_DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/dinner_ticket_system NUXT_REDIS_URL=redis://127.0.0.1:6379 NUXT_SESSION_COOKIE_NAME=dinner_ticket_session +NUXT_WHATSAPP_ACCESS_TOKEN= +NUXT_WHATSAPP_PHONE_NUMBER_ID= +NUXT_WHATSAPP_API_VERSION=v23.0 # Use your deployed HTTPS origin in production so WebAuthn/passkeys validate correctly. NUXT_PUBLIC_APP_URL=http://localhost:20013 diff --git a/README.md b/README.md index 7e39373..1f7c6d0 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,14 @@ Create `.env` from `.env.example` and set: ```bash NUXT_DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/dinner_ticket_system NUXT_REDIS_URL=redis://127.0.0.1:6379 +NUXT_WHATSAPP_ACCESS_TOKEN= +NUXT_WHATSAPP_PHONE_NUMBER_ID= +NUXT_WHATSAPP_API_VERSION=v23.0 NUXT_PUBLIC_APP_URL=http://localhost:20013 ``` `NUXT_PUBLIC_APP_URL` should be your final HTTPS origin in production. Passkeys rely on the RP origin being stable and correct. +Set the WhatsApp variables to enable automatic ticket receipt delivery after PIC confirmation. Without them, confirmation still succeeds and the UI reports that WhatsApp delivery was skipped. ## Setup diff --git a/app/pages/confirmation/[token].vue b/app/pages/confirmation/[token].vue index 722faf5..ef7e1a0 100644 --- a/app/pages/confirmation/[token].vue +++ b/app/pages/confirmation/[token].vue @@ -1,5 +1,5 @@