@wopr-network/platform-core 1.44.0 → 1.44.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +20 -0
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -24,6 +24,26 @@ AFFILIATE_BASE_URL=https://wopr.network/join?ref=
|
|
|
24
24
|
# ELEVENLABS_API_URL=https://api.elevenlabs.io/v1/user
|
|
25
25
|
# DEEPGRAM_API_URL=https://api.deepgram.com/v1/projects
|
|
26
26
|
|
|
27
|
+
# --- Stripe billing ---
|
|
28
|
+
# Billing gracefully degrades when these vars are absent: loadStripeConfig()
|
|
29
|
+
# returns null and loadCreditPriceMap() returns an empty map. The platform
|
|
30
|
+
# runs normally but Stripe checkout and webhook handling are disabled.
|
|
31
|
+
|
|
32
|
+
# Required for Stripe API access (test-mode key starts with sk_test_)
|
|
33
|
+
# STRIPE_SECRET_KEY=sk_test_...
|
|
34
|
+
|
|
35
|
+
# Required for verifying Stripe webhook signatures
|
|
36
|
+
# STRIPE_WEBHOOK_SECRET=whsec_...
|
|
37
|
+
|
|
38
|
+
# Stripe Price IDs for each credit purchase tier.
|
|
39
|
+
# Create these in the Stripe Dashboard under Products > WOPR Credits.
|
|
40
|
+
# Each maps to a preset tier: $5, $10, $25 (+2%), $50 (+5%), $100 (+10%).
|
|
41
|
+
# STRIPE_CREDIT_PRICE_5=price_...
|
|
42
|
+
# STRIPE_CREDIT_PRICE_10=price_...
|
|
43
|
+
# STRIPE_CREDIT_PRICE_25=price_...
|
|
44
|
+
# STRIPE_CREDIT_PRICE_50=price_...
|
|
45
|
+
# STRIPE_CREDIT_PRICE_100=price_...
|
|
46
|
+
|
|
27
47
|
# --- Affiliate billing caps ---
|
|
28
48
|
|
|
29
49
|
# Maximum number of referrals an affiliate can earn credit for in a 30-day window (default: 20)
|