Loading...
Loading...
Stripe Checkout for recurring subscriptions with Customer Portal. Auto-creates plans if not configured.
npx skill4agent add eng0ai/eng0-template-skills stripe-subscriptiongit clone --depth 1 https://github.com/Eng0AI/stripe-subscription.git .git clone --depth 1 https://github.com/Eng0AI/stripe-subscription.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_templaterm -rf .git
git initnpm installcp .env.example .envSTRIPE_SECRET_KEYSTRIPE_PUBLISHABLE_KEYBASIC_PRICEPRO_PRICEnpm startapi/index.jsvercel.json{
"version": 2,
"buildCommand": "",
"outputDirectory": "client/html",
"rewrites": [
{ "source": "/config", "destination": "/api" },
{ "source": "/checkout-session", "destination": "/api" },
{ "source": "/create-checkout-session", "destination": "/api" },
{ "source": "/customer-portal", "destination": "/api" }
]
}printf "YOUR_SECRET_KEY" | vercel env add STRIPE_SECRET_KEY production -t $VERCEL_TOKEN
printf "YOUR_PUBLISHABLE_KEY" | vercel env add STRIPE_PUBLISHABLE_KEY production -t $VERCEL_TOKENvercel --prod -t $VERCEL_TOKEN --yesnetlify/functions/api.jsnetlify.tomlnetlify deploy --prod