Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/stripe-handler
Handle Stripe payments, custom checkouts, and webhook fulfillment outside of standard plans/credits.
Passed 21 of 22 test cases with the skill, and 5 of 22 without it.
and 18 more in the full report
16 fixed5 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
When creating a checkout session endpoint in our Next.js App Router project for a one-time artwork download, what exact import statement should be used to instantiate the Stripe SDK instance?
| Checked | Without skill | With skill |
|---|---|---|
| The import statement imports stripe from `@/lib/stripe`. | Missed | Passed |
The instructions your model reads when the skill loads.
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.
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).test cases passed, vs 5 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.