-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (33 loc) · 2.34 KB
/
Copy path.env.example
File metadata and controls
39 lines (33 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# ──────────────────────────────────────────────────────────────────
# PsiFi Auto-Fire Checkout — environment template
# ──────────────────────────────────────────────────────────────────
# Copy to `.env.local` and fill in your merchant credentials. NEVER
# commit the populated file — `.gitignore` already excludes it.
# ── PsiFi credentials ─────────────────────────────────────────────
# Get these from https://app.psifi.app → Settings → API Keys
PSIFI_API_KEY="sk_test_..."
# Optional: pin the gateway base URL. Defaults to https://api.psifi.app
# when unset. Set to a staging host if PsiFi gives you one.
# PSIFI_API_BASE="https://api.psifi.app/api/v2"
# Optional but recommended in production. Format: ep_<rawstring> or
# whsec_<base64>. When set, /api/psifi/notify will Svix-verify
# inbound webhooks and reject forged events. Get it from the Webhook
# Portal at app.psifi.app/webhooks → endpoint detail.
# PSIFI_WEBHOOK_SECRET="ep_..."
# Optional: if you want to use a contextual product on PsiFi (so
# the hosted page shows "Demo Product · $15.00" instead of just a
# generic amount), create one in app.psifi.app/products and paste
# its id here. The demo will fall back to a generic line item if
# this is unset.
# PSIFI_DEMO_PRODUCT_ID="prod_..."
# ── Site URL ──────────────────────────────────────────────────────
# Public origin of THIS app. Used to construct PsiFi's redirect_url
# (which points at /embedded-bridge) and webhook_url. In production
# this is your real domain (https://example.com). In local dev
# leave it as http://localhost:3000 — PsiFi will still accept it
# for the redirect_url, but webhooks won't be deliverable.
NEXT_PUBLIC_SITE_URL="http://localhost:3000"
# Optional: when set to "false", the demo falls back to the classic
# full-page redirect ("Pay $X.XX" button) instead of the inline
# auto-fire iframe. Useful for A/B comparison.
# NEXT_PUBLIC_PSIFI_EMBEDDED="true"