feat: send ticket receipts via WhatsApp and normalize phone numbers
Add WhatsApp API integration for automated receipt delivery Enforce country codes for all phone number inputs (defaults to +60)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user