forked from cartsnitch/cartsnitch
fix(CAR-812): correct receipt email format and --env flag parser
- docs: fix email address format to receipts+<token>@receipts.cartsnitch.com (per Settings → Receipt Email UI, not the old farh.net domain format) - docs: fix UI section label from 'Account' to 'Receipt Email' - scripts/seed-env.sh: fix --env flag parser when called as './seed-env.sh --env uat' positional form was already correct; flag form was consuming --env as ENV value Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -50,14 +50,9 @@ MatchResult created with method=upc, confidence=1.0 for known UPCs
|
||||
|
||||
### Email Address Format
|
||||
|
||||
Each user is assigned a unique inbound token. The email address format depends on the environment:
|
||||
Each user is assigned a unique inbound token. The receipt submission email address is shown in **Settings → Receipt Email** on the UI:
|
||||
|
||||
| Environment | Domain |
|
||||
|-------------|--------|
|
||||
| Dev | `cartsnitch.dev.farh.net` |
|
||||
| UAT | `cartsnitch.uat.farh.net` |
|
||||
|
||||
**Address:** `<email_inbound_token>@cartsnitch.<env>.farh.net`
|
||||
**Address:** `receipts+<email_inbound_token>@receipts.cartsnitch.com`
|
||||
|
||||
To find a user's token in the UAT database (requires `kubectl` access to `cartsnitch-uat`):
|
||||
|
||||
@@ -83,10 +78,10 @@ kubectl exec -n cartsnitch-uat deployment/cartsnitch-api -- \\
|
||||
### Steps
|
||||
|
||||
1. **Obtain the test user's inbound token.**
|
||||
Use the UAT Settings → Account page in the UI, or query the DB directly (see above).
|
||||
Use the UAT Settings → Receipt Email page in the UI to see the full address `receipts+<token>@receipts.cartsnitch.com`, or query the DB directly (see above).
|
||||
|
||||
2. **Compose the email.**
|
||||
Send to: `<token>@cartsnitch.uat.farh.net`
|
||||
Send to: the address shown in Settings → Receipt Email
|
||||
Subject: anything
|
||||
Body: plain-text or HTML receipt content
|
||||
|
||||
|
||||
+4
-2
@@ -22,8 +22,10 @@
|
||||
set -euo pipefail
|
||||
|
||||
# --- Config -------------------------------------------------------------------
|
||||
ENV="${1:-dev}"
|
||||
shift || true
|
||||
ENV="dev"
|
||||
if [[ "${1:-}" == "dev" || "${1:-}" == "uat" ]]; then
|
||||
ENV="$1"; shift
|
||||
fi
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
|
||||
Reference in New Issue
Block a user