stripe-setup
Stripe Setup
Configure Stripe products and prices for Pitfal Solutions packages.
Prerequisites
-
Stripe CLI installed:
brew install stripe/stripe-cli/stripe -
Login to Stripe:
stripe login -
Verify connection:
stripe config --list
Create Products
Portrait Session
stripe products create \
--name="Portrait Session" \
--description="1-hour portrait photography session including 10 edited digital images"
Event Coverage - Half Day
stripe products create \
--name="Event Coverage - Half Day" \
--description="4-hour event photography and videography coverage"
Event Coverage - Full Day
stripe products create \
--name="Event Coverage - Full Day" \
--description="8-hour event photography and videography coverage"
Digital Download Pack
stripe products create \
--name="Digital Download Pack" \
--description="High-resolution digital images from your session"
Print - 8x10
stripe products create \
--name="Print - 8x10" \
--description="Professional quality 8x10 print"
Create Prices
After creating products, note the product IDs and create prices:
# Portrait Session - $250
stripe prices create \
--product="prod_XXXXX" \
--unit-amount=25000 \
--currency=usd
# Event Half Day - $800
stripe prices create \
--product="prod_XXXXX" \
--unit-amount=80000 \
--currency=usd
# Event Full Day - $1500
stripe prices create \
--product="prod_XXXXX" \
--unit-amount=150000 \
--currency=usd
# Digital Download Pack - $150
stripe prices create \
--product="prod_XXXXX" \
--unit-amount=15000 \
--currency=usd
# Print 8x10 - $35
stripe prices create \
--product="prod_XXXXX" \
--unit-amount=3500 \
--currency=usd
Setup Webhooks (Local Development)
stripe listen --forward-to localhost:3000/api/webhooks/stripe
Setup Webhooks (Production)
stripe webhook_endpoints create \
--url="https://pitfal.solutions/api/webhooks/stripe" \
--enabled-events="checkout.session.completed,payment_intent.succeeded,payment_intent.payment_failed"
List Products
Verify setup:
stripe products list --limit 10
stripe prices list --limit 10
More from forever-efficient/pitfal-solutions-website
optimize-images
Batch optimize images for web delivery. Converts to WebP, generates multiple sizes, and creates blur placeholders.
39gallery-manage
Organize, validate, and manage photo/video galleries. Create gallery structures, validate image files, and prepare content for upload.
35logs
View recent CloudWatch logs for Lambda functions and API Gateway.
30deploy
Deploy the Pitfal Solutions website to AWS. Use when user says deploy, push to production, or update live site. Runs pre-checks, builds Next.js, deploys Terraform infrastructure, syncs to S3, and invalidates CloudFront cache.
29db-seed
Seed the DynamoDB database with sample data for development and testing. Populates galleries, inquiries, and admin tables. Use when setting up local dev environment or resetting test data. WARNING - never run in production.
29preview
Start local development server for previewing the site.
28