Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Handle Stripe payments, custom checkouts, and webhook fulfillment outside of standard plans/credits.
.claude/skills/aiskillstore-stripe-handler/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -9% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 128% | 0% |
Use this skill when you need to implement payment logic using Stripe, specifically for use cases that are NOT standard SaaS subscription plans or standard Credit packages (which are handled by plans-handler and credits-handler respectively).
checkout.session.completed for custom metadata.src/app/api/webhooks/stripe/route.ts for non-standard events.Before writing code, determine the nature of the payment:
plans-handler.credits-handler.You need a server-side endpoint to create the Stripe Checkout Session.
src/app/api/app/orders/create/route.ts) or Server Action.import stripe from "@/lib/stripe";metadata to the session to identify the purchase type in the webhook.typescript metadata: { type: "my_custom_feature", userId: user.id, customId: "..." }
${process.env.NEXT_PUBLIC_APP_URL}/app/subscribe/success?session_id={CHECKOUT_SESSION_ID}${process.env.NEXT_PUBLIC_APP_URL}/app/subscribe/errorAll Stripe events go to src/app/api/webhooks/stripe/route.ts.
src/app/api/webhooks/stripe/route.tsonCheckoutSessionCompleted (for one-time) or handleOutsidePlanManagementProductInvoicePaid (for invoices).metadata from the event object.metadata.type matches your custom feature.Recommended for production: If your fulfillment logic involves multiple DB calls, external APIs, or could timeout (Stripe expects a response in < 3s):
inngest-handler to create a new function.typescript await inngest.send({ name: "app/payment.custom_succeeded", data: { sessionId: object.id, metadata } });
src/inngest/functions/....orders, courses).url (Stripe Checkout).stripe listen to test webhooks locally.See reference.md for code snippets on creating sessions, handling webhooks, and using Inngest.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 16,802 | 12,155 | -28% | 1 | 1 | 0% | 3,376 | 3,497 | +4% | 0 | 0 | — |
case-02 | fail→pass | 19,745 | 11,963 | -39% | 1 | 1 | 0% | 3,931 | 3,590 | -9% | 0 | 0 | — |
case-03 | fail→fail | 17,914 | 10,876 | -39% | 1 | 1 | 0% | 3,479 | 3,239 | -7% | 0 | 0 | — |
case-04 | fail→pass | 18,154 | 11,814 | -35% | 1 | 1 | 0% | 3,700 | 3,218 | -13% | 0 | 0 | — |
case-05 | fail→pass | 19,250 | 10,318 | -46% | 1 | 1 | 0% | 3,567 | 2,984 | -16% | 0 | 0 | — |
case-06 | pass→pass | 11,169 | 9,985 | -11% | 1 | 1 | 0% | 2,161 | 2,940 | +36% | 0 | 0 | — |
case-07 | fail→pass | 3,726 | 1,806 | -52% | 1 | 1 | 0% | 541 | 1,235 | +128% | 0 | 0 | — |
case-08 | fail→pass | 8,896 | 2,795 | -69% | 1 | 1 | 0% | 1,567 | 1,441 | -8% | 0 | 0 | — |
case-09 | fail→pass | 7,837 | 3,199 | -59% | 1 | 1 | 0% | 1,406 | 1,490 | +6% | 0 | 0 | — |
case-10 | fail→pass | 11,354 | 1,818 | -84% | 1 | 1 | 0% | 1,839 | 1,142 | -38% | 0 | 0 | — |
case-11 | fail→pass | 5,717 | 2,222 | -61% | 1 | 1 | 0% | 946 | 1,281 | +35% | 0 | 0 | — |
case-12 | fail→pass | 9,790 | 1,389 | -86% | 1 | 1 | 0% | 1,574 | 1,158 | -26% | 0 | 0 | — |
case-13 | fail→pass | 14,271 | 3,699 | -74% | 1 | 1 | 0% | 2,409 | 1,675 | -30% | 0 | 0 | — |
case-14 | fail→pass | 9,162 | 2,030 | -78% | 1 | 1 | 0% | 1,541 | 1,271 | -18% | 0 | 0 | — |
case-15 | fail→pass | 12,640 | 2,678 | -79% | 1 | 1 | 0% | 2,146 | 1,423 | -34% | 0 | 0 | — |
case-16 | fail→pass | 13,612 | 3,162 | -77% | 1 | 1 | 0% | 2,135 | 1,517 | -29% | 0 | 0 | — |
case-17 | pass→pass | 10,206 | 2,563 | -75% | 1 | 1 | 0% | 1,813 | 1,388 | -23% | 0 | 0 | — |
case-18 | fail→pass | 9,148 | 1,985 | -78% | 1 | 1 | 0% | 1,540 | 1,224 | -21% | 0 | 0 | — |
case-19 | fail→pass | 12,406 | 6,238 | -50% | 1 | 1 | 0% | 2,081 | 2,069 | -1% | 0 | 0 | — |
case-20 | pass→pass | 5,953 | 3,701 | -38% | 1 | 1 | 0% | 935 | 1,476 | +58% | 0 | 0 | — |
case-21 | pass→pass | 14,073 | 6,929 | -51% | 1 | 1 | 0% | 2,628 | 2,112 | -20% | 0 | 0 | — |
case-22 | pass→pass | 9,784 | 3,479 | -64% | 1 | 1 | 0% | 1,440 | 1,465 | +2% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +73 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.