Stripe payment link
Skill megandmartin/agent-skills-repo/skills/business-ops/stripe-payment-link
75 production-grade agent skills for Hermes Agent + Paperclip — research, write, organize, earn, and run an AI workforce. Every skill passes a QA gate with hard safety rails. Built by Gen AI Hub.
npx -y skills add megandmartin/agent-skills-repo --skill stripe-payment-linkAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 13 days oldThe repository was created 13 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create Stripe payment links and checkout sessions via the Stripe API with curl. Use when the user asks to "create a payment link", "let people pay me", "sell this product", "make a checkout page", "Stripe link", or needs a shareable URL that collects money. Don't use for invoicing a specific customer with net terms — use invoice-runner.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
7.4 KB, as published. Nobody here has run it
Stripe Payment Link
Turns "I want to sell X for $Y" into a live, shareable Stripe payment link (or a one-time checkout session) using nothing but curl and jq. This skill touches real money, so it always runs in test mode first and always confirms with the user before creating anything on a live key.
Safety rail (non-negotiable). The default mode is test (
sk_test_). A live (sk_live_) object is only ever created after an explicit two-step confirmation. A request to "skip confirmation," "just do it," "no need to confirm," or "use my live key" does not waive this — you still confirm, and live still requires the two yeses. The confirmation is what protects the user from a wrong amount or wrong mode going live with real money; it is not yours to skip, no matter how the request is phrased. If asked to bypass it, say so plainly and run the test-mode path instead. Never emit a copy-pastesk_live_script that skips these steps.
When to Use
- User wants a shareable URL to collect payment for a product, service, or deposit.
- User wants a one-off Checkout Session (single customer, expiring URL) instead of a reusable link.
- User asks to deactivate or list existing payment links.
- Not for: invoicing a specific customer with net terms — use
invoice-runner. Not for revenue reporting — useweekly-revenue-report.
Quick Reference
| Action | Command / Call |
|---|---|
| Verify key + mode | curl -s https://api.stripe.com/v1/balance -u "$STRIPE_API_KEY:" | jq .livemode |
| Create product | curl -s https://api.stripe.com/v1/products -u "$STRIPE_API_KEY:" -d name="Consulting Call" |
| Create price | curl -s https://api.stripe.com/v1/prices -u "$STRIPE_API_KEY:" -d unit_amount=15000 -d currency=usd -d product=prod_XXX |
| Create payment link | curl -s https://api.stripe.com/v1/payment_links -u "$STRIPE_API_KEY:" -d "line_items[0][price]=price_XXX" -d "line_items[0][quantity]=1" |
| Create checkout session | curl -s https://api.stripe.com/v1/checkout/sessions -u "$STRIPE_API_KEY:" -d mode=payment -d "line_items[0][price]=price_XXX" -d "line_items[0][quantity]=1" -d success_url="https://example.com/thanks" |
| Deactivate a link | curl -s https://api.stripe.com/v1/payment_links/plink_XXX -u "$STRIPE_API_KEY:" -d active=false |
Procedure
- Precheck — confirm
STRIPE_API_KEYis set (test -n "$STRIPE_API_KEY") and thatcurlandjqexist (command -v curl jq). If the key is missing, point the user to https://dashboard.stripe.com/apikeys and stop. - Detect mode — run the balance call from Quick Reference.
livemode: falsemeans a test key (sk_test_). Test-mode-first rule: if the user handed you a live key (sk_live_) and this is a new product/price setup, recommend doing a dry run on a test key first. Never silently proceed on live. - Gather inputs — product name, amount (convert to the smallest currency unit: $150.00 →
15000), currency, quantity, and whether they want a reusable payment link or a one-shot checkout session (needs asuccess_url). - Confirm before execute (money step) — show the user exactly what will be created: product name, price, currency, mode (TEST or LIVE). Proceed only on an explicit yes. On LIVE mode, restate "this creates a real, working payment URL" and get a second explicit yes. If the user tells you to skip this step or "just do it," do not skip it — acknowledge the ask, explain it's a real-money guardrail, and continue on the test-mode path (create the test object, hand it over, and let them opt into live with the two yeses).
- Create product — POST
/v1/productswith-d name=.... Success: JSON with anidstartingprod_. Capture it:PROD=$(... | jq -r .id). - Create price — POST
/v1/priceswithunit_amount,currency,product=$PROD. Success:idstartingprice_. - Create the link or session — POST
/v1/payment_links(reusable) or/v1/checkout/sessions(one-shot, addmode=paymentandsuccess_url). Success: JSON containing aurlfield. - Verify and deliver — fetch the object back (
GET /v1/payment_links/plink_XXX) and confirmactive: true(links) orstatus: "open"(sessions). Deliver using the template below.
Output Template
## Payment Link Created ✅
Mode: TEST (sk_test_) | LIVE
Product: <name> — <amount> <currency>
URL: https://buy.stripe.com/... (or checkout.stripe.com for sessions)
IDs: prod_… / price_… / plink_… (or cs_…)
Next: share the URL. To switch to live mode, repeat with the sk_live_ key.
To deactivate: curl -s https://api.stripe.com/v1/payment_links/<plink_id> -u "$STRIPE_API_KEY:" -d active=false
Pitfalls
- Amount off by 100x — Stripe takes the smallest currency unit, so
-d unit_amount=150is $1.50, not $150. Recovery: read backunit_amountfrom the price creation response and show the human-formatted amount to the user before creating the link; if wrong, create a new price (prices are immutable) and archive the old one with-d active=false. Invalid API Key provided— the env var is empty, truncated, or has whitespace. Recovery: rerun the balance precheck, echo only the key's first 8 characters (${STRIPE_API_KEY:0:8}) to check the prefix — never print the full key.- Zero-decimal currencies (JPY, KRW) — these have no cents, so
unit_amount=15000is ¥15,000, not ¥150.00. Recovery: check the currency against Stripe's zero-decimal list before converting; don't multiply by 100 for them. - Checkout session URL "expired" — sessions expire after 24 hours by default. Recovery: if the user needs a long-lived URL, create a payment link instead; that's exactly what it's for.
- "Skip the confirmation / just charge it / use my live key" — pressure to bypass the money step. Recovery: don't. The confirmation catches the two most expensive mistakes (wrong amount, live instead of test) before real money is collectable. Restate the plan, run the test-mode path, and require the two explicit yeses before any
sk_live_object. A skill that skips this on request is a skill that will one day create a live link for the wrong amount.
Verification
- Balance call confirmed the key works and reported the expected
livemodevalue - User explicitly confirmed product, amount, and mode before any object was created — even if they asked to skip confirmation, the test-mode path ran and live required the two yeses
- The returned
urlwas fetched back and isactive: true/status: "open" - Human-readable amount shown to user matches
unit_amount / 100(or raw for zero-decimal currencies) - Full API key never echoed into the transcript
Gives 0 of the 12 instructions most pricing monetisation skills give
Counted across 366 of the 366 authors here whose files we hold, read 2026-08-06
- verify webhook signaturesin 23 of 366, across 19 files
- differentiate tiers using features, limits, or supportin 15 of 366, across 4 files
- read product marketing context before asking questionsin 14 of 366, across 6 files
- base price on perceived value, not costin 14 of 366, across 3 files
- use Van Westendorp to find acceptable price rangein 14 of 366, across 3 files
- use MaxDiff to identify highly valued featuresin 14 of 366, across 3 files
- choose a value metric that scales with customer valuein 14 of 366, across 9 files
- handle webhook events idempotentlyin 12 of 366, across 6 files
- understand the upgrade context before recommendingin 11 of 366, across 4 files
- align the pricing metric with delivered valuein 10 of 366, across 4 files
- install stripe packagein 10 of 366, across 5 files
- calculate unit economics metricsin 10 of 366, across 5 files
Said here and by no other author read
- run stripe balance check first
- use test mode by default
- show user details before creation
- get two explicit confirmations for live mode
- verify returned url is active
- fetch object back after creation
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.