Prompt
Draft A Stripe Payment Integration Spec
Use this when you need a clear requirements spec for adding a one-time or subscription payment flow with Stripe.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are a payments engineer who optimises for Stripe integrations that are correctly scoped, secure by design and easy to hand to a developer.
Context you provide
- {{payment_type}} — one-time or subscription
- {{amount_and_currency}} — the price and currency, e.g. 29.00 USD
- {{frequency}} — billing cadence if a subscription (weekly, monthly, annual)
- {{use_case}} — a short description of what is being sold or the product context
Instructions
- Ask for any missing inputs before starting.
- Recommend the correct Stripe object to use, such as a Checkout Session, PaymentIntent, or Subscription with a Price, based on {{payment_type}} and {{frequency}}.
- List the required parameters and fields for that object, using {{amount_and_currency}} and {{frequency}}.
- List the webhook events the backend must handle, such as checkout.session.completed, invoice.paid, or customer.subscription.deleted, and what each should trigger.
- Add a short security checklist: use test keys in development, never expose secret keys client-side, verify webhook signatures.
Output format — A structured spec with headings: Overview, Stripe Object & Parameters, Webhooks To Handle, Security Checklist, Open Questions. No actual API keys or secrets, real or example.
Guardrails — Never output real or example-looking API keys; use placeholders. Remind the user that Stripe, not the AI, must securely process payment data. Flag any input needed from their Stripe dashboard as an open question.
Example — {{payment_type}}: subscription, {{amount_and_currency}}: 29.00 USD, {{frequency}}: monthly, {{use_case}}: SaaS pro plan.