Stripe API
Stripe API
Status: ✅ Active
Accounts: 3 (multi-brand)
CLI: stripe + brand wrappers (stripe-philoveracity, stripe-startempire, stripe-asapdigest)
Token Location: /root/.credentials/stripe.env
Configured Accounts
| Brand | Account | Status |
|---|---|---|
| Philoveracity | philoveracity | ✅ Live keys |
| StartEmpire Wire | startempire | ✅ Live keys |
| ASAP Digest | asapdigest | ✅ Live keys |
Configuration
# Location/root/.credentials/stripe.env
# Contents (keys redacted)STRIPE_PHILOVERACITY_PK=pk_***STRIPE_PHILOVERACITY_SK=sk_***
STRIPE_STARTEMPIRE_PK=pk_live_***STRIPE_STARTEMPIRE_SK=sk_live_***
STRIPE_ASAPDIGEST_PK=pk_live_***STRIPE_ASAPDIGEST_SK=sk_live_***CLI Usage (Preferred)
# Use brand-specific wrappers (auto-loads correct API key)stripe-philoveracity products liststripe-startempire products liststripe-asapdigest products list
# Create productstripe-philoveracity products create --name="New Product"
# Create pricestripe-philoveracity prices create \ --product=prod_xxx \ --unit-amount=2999 \ --currency=usd
# Listen to webhooks (dev)stripe-philoveracity listen --forward-to localhost:3000/webhookAPI Usage (Alternative)
# Load credentialssource /root/.credentials/stripe.env
# List products (Philoveracity)curl https://api.stripe.com/v1/products \ -u "$STRIPE_PHILOVERACITY_SK:"
# Create productcurl https://api.stripe.com/v1/products \ -u "$STRIPE_PHILOVERACITY_SK:" \ -d name="New Product" \ -d description="Product description"
# Create pricecurl https://api.stripe.com/v1/prices \ -u "$STRIPE_PHILOVERACITY_SK:" \ -d product="prod_xxx" \ -d unit_amount=2999 \ -d currency=usd
# Create checkout sessioncurl https://api.stripe.com/v1/checkout/sessions \ -u "$STRIPE_PHILOVERACITY_SK:" \ -d "line_items[0][price]"="price_xxx" \ -d "line_items[0][quantity]"=1 \ -d mode=payment \ -d success_url="https://example.com/success" \ -d cancel_url="https://example.com/cancel"MAP Integration
| Feature | Purpose |
|---|---|
| Products | Create product catalog per brand |
| Prices | One-time and subscription pricing |
| Checkout | Payment flow automation |
| Webhooks | Event handling (fulfillment triggers) |
| Customers | License and subscription management |
Brand Selection Logic
# MAP selects Stripe account based on product brandcase "$BRAND" in philoveracity) SK="$STRIPE_PHILOVERACITY_SK" ;; startempire) SK="$STRIPE_STARTEMPIRE_SK" ;; asapdigest) SK="$STRIPE_ASAPDIGEST_SK" ;;esacWordPress Integration
// wp-config.php (per-site)define('STRIPE_SECRET_KEY', 'sk_live_...');define('STRIPE_PUBLISHABLE_KEY', 'pk_live_...');define('STRIPE_WEBHOOK_SECRET', 'whsec_...');Security Notes
- All keys are LIVE (not test) - handle with care
- Stored with 600 permissions (root only)
- Webhook secrets should be configured per-site when needed
Configured: 2026-01-05