No slash command · from anglesite
Adds a buy/payment button for selling products, services, or digital goods via Stripe Payment Links or Polar checkout overlay.
Ships in anglesite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Add a buy/payment button to a page. Two paths depending on what the owner is selling:
cdn.polar.sh) is an approved exception, like Cloudflare Turnstile./anglesite:add-store routes here (single product, no catalog needed)Ask the owner: "What are you selling?"
Route to Polar if the answer involves digital goods:
Route to Stripe if the answer involves:
If unclear, explain the difference:
Polar is best for digital products — it handles file delivery, license keys, and international sales tax automatically. You only pay 4% + payment processing fees, no monthly cost.
Stripe is best for services, physical goods, or donations — it's a simple payment link with no extra features. 2.9% + 30¢ per transaction.
Ask the owner for:
Tell the owner:
To accept payments, you'll need a Stripe account and a Payment Link. Here's how:
- Go to your Stripe Dashboard → Payment Links → Create payment link
- Set the product name, price, and description
- Click Create link and copy the URL (it looks like
https://buy.stripe.com/...)- Paste the URL here
If the owner doesn't have a Stripe account, explain:
Stripe is free to set up — you only pay when you make a sale (2.9% + 30¢ per transaction). Create an account at stripe.com, then follow the steps above.
Wait for the owner to provide the Payment Link URL before proceeding.
The BuyButton.astro component already exists at src/components/BuyButton.astro.
Import and use it on the target page:
---
import BuyButton from "../components/BuyButton.astro";
---
<BuyButton href="https://buy.stripe.com/OWNER_LINK" label="Buy Now" />
Adjust the label prop to match what the owner requested (e.g., "Book Now", "Donate", "Get Started").
Place the button in context — near the product description, pricing section, or call-to-action area. Don't drop it in isolation.
Ask the owner for:
Tell the owner:
Polar handles everything for digital sales — payment processing, file delivery, license keys, and international sales tax. Here's how to set it up:
- Go to polar.sh and create an account (or sign in)
- Create a new product — set the name, price, and description
- If selling a file, upload it to the product (Polar delivers it after purchase)
- Go to the product page and copy the checkout URL (it looks like
https://buy.polar.sh/...)- Paste the URL here
If the owner asks about costs:
Polar charges 4% + payment processing fees per transaction. No monthly fee. They handle all international VAT and sales tax as your Merchant of Record — you don't need to worry about tax compliance.
Wait for the owner to provide the checkout URL before proceeding.
The PolarCheckout.astro component already exists at src/components/PolarCheckout.astro.
Import and use it on the target page:
---
import PolarCheckout from "../components/PolarCheckout.astro";
---
<PolarCheckout href="https://buy.polar.sh/OWNER_PRODUCT" label="Buy Now" />
The component accepts these props:
href (required) — the Polar checkout URLlabel (optional, default "Buy Now") — button texttheme (optional, default "light") — "light" or "dark" to match the site themeThe component renders a checkout overlay that opens on the current page — the customer stays on the site during purchase.
Place the button in context — near the product description, pricing section, or call-to-action area. Don't drop it in isolation.
Skip this step for Stripe Payment Links — they are plain links and need no CSP change.
The shipped public/_headers does not allow Polar's domains (cdn.polar.sh, api.polar.sh, buy.polar.sh); without this step the site builds fine and then breaks in production. Make sure ECOMMERCE_PROVIDER=polar is saved in .site-config (the sync reads it), then run:
npm run ai-csp
It adds the provider's domains to the Content-Security-Policy in public/_headers in place — everything already there is kept — and prints each source it added (+ script-src: …). "up to date" means they were already present. The pre-deploy third-party script scan reads the same key, so no separate allowlist edit is needed.
Run npm run build to confirm the site builds cleanly with the new component.
<a> tag with target="_blank" — accessible, works without JavaScript, prints cleanlycdn.polar.sh — approved in ADR-0008; Step 4 allows it in the CSP and the pre-deploy scan/anglesite:add-store skill deploys the ecommerce webhook worker for revenue tracking. If this skill was invoked directly (not via add-store), remind the agent to set up the webhook for the chosen provider (Stripe or Polar) — see worker/wrangler-ecommerce.toml for details.What SKILL.md sets; muted values are Claude Code's defaults
Use when the owner wants to sell a single product, service, or download with a simple pay button rather than a full store, or mentions Stripe Payment Links or Polar.
Three short reads, in order
npx claudepluginhub anglesite/anglesite-skills --plugin anglesite56 skills in this plugin
/bookingEmbed appointment scheduling (Cal.com or Calendly) into the siteOther plugins' skills for the same job