AI Blocks › Build and ship software
Stripe payments builder
Say how you charge. Get Stripe checkout, subscriptions and webhooks built safely, with test steps.
Stripe payments builder is a free AI skill for the job "Build and ship software". Give the instructions to an AI assistant that supports the required files and tools, then review its output.
Free · No account · MIT licence · Made by Alireza Rezvani · Level: advanced
Made by Alireza Rezvani. See the original on GitHub; we copied it as it is, with its licence.
What it does
Working code to take payments with Stripe: one-off checkout, monthly plans, trials, upgrades and downgrades with correct proration, and usage-based billing. You say how you charge, and it builds the pieces and the test steps. It handles the full subscription life: free trial, active, cancel pending, canceled and back again. Webhook handlers verify Stripe's signature and ignore repeated events, which stops double charges and lost updates. It also adds the customer portal, invoices and local testing with the Stripe CLI. You need a Stripe account, a web app and developer skills. Use test mode first and check everything before taking real money.
You give it
- How you charge, one-off, monthly or usage-based
- Your plans and prices
- Your app's language and framework
- A Stripe account in test mode
- Codebase (optional)
You get
- Checkout and subscription code
- Webhook handlers with signature checks
- Upgrade and downgrade logic
- Customer portal setup
- A local test plan with the Stripe CLI
Use it when
- You are adding paid plans to your web app for the first time.
- Customers upgrade mid-month and you must prorate fairly.
- Stripe events arrive but your app does not update accounts.
- You are changing from flat pricing to pay per use.
How to use it
- Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
- Ask for the job in your own words. Your AI opens the skill when it fits.
- It works best when your AI can run code and read your project files.