Stripe one time payment

From rebyteai-template/rebyte-skills · View interactive version

Stripe one time payment is an AI agent skill from the GitHub repository rebyteai-template/rebyte-skills. Stripe Checkout for one-time payments with Express.js. Auto-creates products if not configured.

How to use this skill

Skill file

Stripe One-Time Payment

Stripe Checkout integration for accepting one-time payments. No webhook configuration required.

Tech Stack

Setup

1. Clone the Template

git clone --depth 1 https://github.com/Eng0AI/stripe-one-time-payment.git .

If the directory is not empty:

git clone --depth 1 https://github.com/Eng0AI/stripe-one-time-payment.git _temp_template
mv _temp_template/* _temp_template/.* . 2>/dev/null || true
rm -rf _temp_template

2. Remove Git History (Optional)

rm -rf .git
git init

3. Install Dependencies

npm install

4. Setup Environment Variables

cp .env.example .env

Required:

Optional:

5. Start the Server

npm start

Server runs at http://localhost:4242. If PRICE is not set, it auto-creates a sample product.

Deploy to Vercel

Step 1: Create Serverless API Wrapper

Create api/index.js with the Stripe checkout logic (see full deploy guide).

Step 2: Create Vercel Config

Create vercel.json:

{
  "version": 2,
  "buildCommand": "",
  "outputDirectory": "client/html",
  "rewrites": [
    { "source": "/config", "destination": "/api" },
    { "source": "/checkout-session", "destination": "/api" },
    { "source": "/create-checkout-session", "destination": "/api" }
  ]
}

Step 3: Set Environment Variables

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_TOKEN

Step 4: Deploy

vercel --prod -t $VERCEL_TOKEN --yes

Deploy to Netlify

Create netlify/functions/api.js and netlify.toml with similar configuration, then:

netlify deploy --prod

Testing

Use test card numbers:

Any future expiry date and any 3-digit CVC will work.

Going Live

  1. Replace test keys with live keys (sk_live_/pk_live_)
  2. Create products in Stripe Dashboard Live mode
  3. Complete Stripe account verification (KYC)
  4. Test with a real payment
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.