Skip to content

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

BrandAccountStatus
Philoveracityphiloveracity✅ Live keys
StartEmpire Wirestartempire✅ Live keys
ASAP Digestasapdigest✅ Live keys

Configuration

Terminal window
# 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)

Terminal window
# Use brand-specific wrappers (auto-loads correct API key)
stripe-philoveracity products list
stripe-startempire products list
stripe-asapdigest products list
# Create product
stripe-philoveracity products create --name="New Product"
# Create price
stripe-philoveracity prices create \
--product=prod_xxx \
--unit-amount=2999 \
--currency=usd
# Listen to webhooks (dev)
stripe-philoveracity listen --forward-to localhost:3000/webhook

API Usage (Alternative)

Terminal window
# Load credentials
source /root/.credentials/stripe.env
# List products (Philoveracity)
curl https://api.stripe.com/v1/products \
-u "$STRIPE_PHILOVERACITY_SK:"
# Create product
curl https://api.stripe.com/v1/products \
-u "$STRIPE_PHILOVERACITY_SK:" \
-d name="New Product" \
-d description="Product description"
# Create price
curl https://api.stripe.com/v1/prices \
-u "$STRIPE_PHILOVERACITY_SK:" \
-d product="prod_xxx" \
-d unit_amount=2999 \
-d currency=usd
# Create checkout session
curl 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

FeaturePurpose
ProductsCreate product catalog per brand
PricesOne-time and subscription pricing
CheckoutPayment flow automation
WebhooksEvent handling (fulfillment triggers)
CustomersLicense and subscription management

Brand Selection Logic

Terminal window
# MAP selects Stripe account based on product brand
case "$BRAND" in
philoveracity) SK="$STRIPE_PHILOVERACITY_SK" ;;
startempire) SK="$STRIPE_STARTEMPIRE_SK" ;;
asapdigest) SK="$STRIPE_ASAPDIGEST_SK" ;;
esac

WordPress 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