stripe-best-practices

SkillCommerce & finance

Your AI can build payment products with Stripe the way Stripe recommends, working from Stripe's own published guidance instead of guessing. Once added, it helps you plan and create the payment side of a product or business, including AI-powered products built on Stripe. The result is work that lines up with Stripe's best practices from the start.

Use stripe-best-practices in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add stripe-best-practices and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the stripe-best-practices skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add it, then bring your AI whatever you are working on and ask for help with the payments part, whether that is a plan or the build itself. It will draw on Stripe's best practices as it works.

stripe-best-practicesStart free

What your AI can do with it

  • Build payment features that follow Stripe's recommended practices
  • Plan how a product takes payments using Stripe's guidance
  • Advise on building AI-powered products and businesses on Stripe
  • Answer questions about building with Stripe from Stripe's own know-how
  • Cut guesswork when designing the payment side of your product

What this skill tells your AI

The instructions your AI receives, as published by bex-co/bex in .claude/skills/stripe-best-practices/SKILL.md and read by Ahel’s review.

In Core, read packages/api/src/stripe/api-version.ts and packages/api/package.json for the approved API version and SDK. Reuse the existing Stripe client. Preserve those pins unless the requested work explicitly includes a reviewed version upgrade; choose and verify that upgrade target before changing code. The upstream versions and examples below are reference snapshots, not Core upgrade instructions.

Upstream API reference snapshot: 2026-07-29.dahlia.

Upstream SDK reference snapshots (Core uses its approved manifest and lockfile):

LanguageLatest version
Ruby19.4.0
Python15.4.0
Node.js22.4.0
PHP21.1.0
Java33.2.0
Go86.2.0
.NET52.2.0

If you don’t have a Stripe account, you can call a CLI command to generate working API keys with no registration required. You can install the Stripe CLI (npm i -g @stripe/cli) and run the command stripe sandbox create to get started.

If stripe sandbox create is used, don’t use MCP.

If you try to use MCP after running sandbox creation, first make sure stripe sandbox claim is run. Use stripe whoami --format json for CLI auth checks; do not run stripe config --list.

API key default: Always recommend a restricted API key (RAK) (rk_ prefix) over a secret key (sk_ prefix).

Integration routing

Building…Recommended APIDetails
One-time paymentsCheckout Sessions<references/payments.md>
Custom payment form with embedded UICheckout Sessions + Payment Element<references/payments.md>
Saving a payment method for laterSetup Intents<references/payments.md>
Connect platform or marketplaceAccounts v2 (/v2/core/accounts)<references/connect.md>
Usage-based billing (new integration)Metronome<references/billing.md>
Subscriptions or recurring billingBilling APIs + Checkout Sessions<references/billing.md>
Sales tax, VAT, or GST complianceStripe Tax + Registrations API<references/tax.md>
Embedded financial accounts / bankingv2 Financial Accounts<references/treasury.md>
Security (key management, RAKs, webhooks, OAuth, 2FA, Connect liability)See security reference<references/security.md>

Read the relevant reference file before answering any integration question or writing code.

Critical rules

  • Before enabling automatic_tax: { enabled: true } (or calculating tax for a custom PaymentIntent), read the tax reference and confirm the user has an active registration. Without one, Stripe calculates and collects no tax while the user believes tax is on (the most common Stripe Tax mistake).

  • Preserve Core's quoted payment method. packages/api/src/donate/payment-intent.ts intentionally passes payment_method_types when the gift quote binds the allowed method (including card versus ACH fee assumptions). Keep that allowlist and its idempotent recovery behavior. The same helper enables automatic_payment_methods only when no method restriction is supplied. Do not replace this contract with Dashboard-driven dynamic methods during unrelated work. For a new integration, verify the supported options in the pinned SDK and PaymentIntent creation API.

  • On API version 2026-03-25.dahlia or later, pass the parameter integration_identifier to checkout.sessions.create to tag sessions with a custom label for tracking and comparing checkout flows in the Dashboard. The label should include a suffix of 8 random letters.

  • Always instantiate a StripeClient and call methods on that instance. Do not use the deprecated global/module-level API key pattern (stripe.api_key = …, Stripe.setApiKey, stripe.Key = …, StripeConfiguration.ApiKey = …). The global pattern is deprecated in all current SDKs.

Key documentation

When the user’s request does not clearly fit a single domain above, consult:

Signals

GitHub stars
566
Forks
63
Last commit
Oct 2026

Ahel review

  • S4info
    community integration, published by asymmetric-al, not stripe

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
stripe-best-practices
Source
github.com/bex-co/bex