Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Stripe payments integration: charges, subscriptions, invoices, webhooks, Connect platform, and fraud prevention (Radar). Build payment workflows, recurring billing, and marketplace payouts.
.claude/skills/mkurman-stripe-payments/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-15 | ✗→✓ | ▲ Improved | 31% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -11% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 90% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 91% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 28% | 0% |
Stripe handles payment processing for online businesses — one-time charges, subscription billing, invoicing, marketplace payouts (Connect), and fraud prevention (Radar). This skill covers the Python SDK (stripe module).
bashuv pip install stripe
pythonimport stripe stripe.api_key = "sk_test_..." charge = stripe.Charge.create( amount=2000, # $20.00 in cents currency="usd", source="tok_visa", # token from Stripe.js description="Example charge", ) print(charge.id, charge.status)
pythoncustomer = stripe.Customer.create(email="customer@example.com") subscription = stripe.Subscription.create( customer=customer.id, items=[{"price": "price_123"}], # recurring price ID ) print(subscription.id, subscription.status)
pythonfrom flask import request import stripe payload = request.data sig_header = request.headers.get("Stripe-Signature") event = stripe.Webhook.construct_event(payload, sig_header, "whsec_...") if event.type == "payment_intent.succeeded": payment_intent = event.data.object print(f"Payment {payment_intent.id} succeeded")
python# Create a connected account account = stripe.Account.create( type="express", country="US", email="seller@example.com", ) # Transfer funds transfer = stripe.Transfer.create( amount=1000, currency="usd", destination=account.id, )
pythontry: charge = stripe.Charge.create(amount=-1, currency="usd") except stripe.error.InvalidRequestError as e: print(f"Invalid request: {e.user_message}") except stripe.error.CardError as e: print(f"Card declined: {e.error.decline_code}") except stripe.error.RateLimitError: print("Rate limited — retry with exponential backoff")
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 22,826 | 12,581 | -45% | 1 | 1 | 0% | 3,884 | 3,030 | -22% | 0 | 0 | — |
case-02 | pass→pass | 9,028 | 2,227 | -75% | 1 | 1 | 0% | 981 | 871 | -11% | 0 | 0 | — |
case-03 | pass→pass | 3,270 | 3,366 | +3% | 1 | 1 | 0% | 520 | 987 | +90% | 0 | 0 | — |
case-04 | pass→pass | 3,344 | 2,339 | -30% | 1 | 1 | 0% | 496 | 948 | +91% | 0 | 0 | — |
case-05 | pass→pass | 4,259 | 2,068 | -51% | 1 | 1 | 0% | 727 | 933 | +28% | 0 | 0 | — |
case-06 | pass→pass | 6,948 | 2,513 | -64% | 1 | 1 | 0% | 1,185 | 1,018 | -14% | 0 | 0 | — |
case-07 | pass→pass | 2,336 | 2,063 | -12% | 1 | 1 | 0% | 378 | 909 | +140% | 0 | 0 | — |
case-08 | pass→pass | 4,248 | 2,408 | -43% | 1 | 1 | 0% | 689 | 938 | +36% | 0 | 0 | — |
case-09 | pass→pass | 3,493 | 2,504 | -28% | 1 | 1 | 0% | 556 | 954 | +72% | 0 | 0 | — |
case-10 | pass→pass | 6,762 | 3,004 | -56% | 1 | 1 | 0% | 1,170 | 1,069 | -9% | 0 | 0 | — |
case-11 | pass→pass | 2,413 | 2,411 | -0% | 1 | 1 | 0% | 365 | 962 | +164% | 0 | 0 | — |
case-12 | pass→pass | 5,254 | 2,478 | -53% | 1 | 1 | 0% | 814 | 936 | +15% | 0 | 0 | — |
case-13 | pass→pass | 2,658 | 2,204 | -17% | 1 | 1 | 0% | 425 | 936 | +120% | 0 | 0 | — |
case-14 | pass→pass | 8,596 | 2,018 | -77% | 1 | 1 | 0% | 1,468 | 884 | -40% | 0 | 0 | — |
case-15 | fail→pass | 6,219 | 4,640 | -25% | 1 | 1 | 0% | 1,099 | 1,443 | +31% | 0 | 0 | — |
case-16 | pass→pass | 15,050 | 8,534 | -43% | 1 | 1 | 0% | 2,659 | 2,170 | -18% | 0 | 0 | — |
case-17 | pass→pass | 12,892 | 4,101 | -68% | 1 | 1 | 0% | 1,104 | 1,314 | +19% | 0 | 0 | — |
case-18 | pass→pass | 6,435 | 2,514 | -61% | 1 | 1 | 0% | 1,018 | 981 | -4% | 0 | 0 | — |
case-19 | pass→pass | 4,927 | 3,492 | -29% | 1 | 1 | 0% | 860 | 1,131 | +32% | 0 | 0 | — |
case-20 | pass→pass | 6,058 | 3,340 | -45% | 1 | 1 | 0% | 1,039 | 1,166 | +12% | 0 | 0 | — |
case-21 | pass→pass | 11,201 | 7,473 | -33% | 1 | 1 | 0% | 2,101 | 2,045 | -3% | 0 | 0 | — |
case-22 | pass→pass | 6,994 | 5,064 | -28% | 1 | 1 | 0% | 1,128 | 1,408 | +25% | 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 +5 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.