No slash command · from anglesite
Sets up Paddle checkout overlay for selling software licenses, SaaS subscriptions, or metered-billing products. Handles Paddle.js integration, client-side token, and price ID configuration.
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.
Set up Paddle checkout for selling software, plugins, SaaS subscriptions, or metered-billing products. Paddle acts as Merchant of Record — it handles global tax compliance, subscription management, license keys, and payouts. Claude embeds a checkout overlay on the site using Paddle.js.
This skill is invoked by /anglesite:add-store when the owner is selling software, a plugin, or a subscription/SaaS product.
ECOMMERCE_PROVIDER=paddleRead EXPLAIN_STEPS from .site-config. If true or not set, explain before every tool call that will trigger a permission prompt. If false, proceed without pre-announcing.
PaddleCheckout component on the siteCF_PROJECT_NAME set in .site-config)Ask the owner:
"To set up your checkout, I need two things from your Paddle dashboard:
- Client-side token — found at Paddle > Developer Tools > Authentication. It starts with
test_(sandbox) orlive_(production).- Price ID — found on the product's pricing page. It looks like
pri_01abc123....You can start with a sandbox token to test, then switch to live when you're ready."
If the owner doesn't have a Paddle account:
"No problem! Sign up at https://www.paddle.com — they have a generous sandbox for testing. Once you've created a product and a price, come back with the client-side token and price ID."
Exit gracefully. Do not write any files.
Validate the inputs:
test_ or live_pri_If invalid, explain what's expected and ask again.
Save to .site-config:
PADDLE_CLIENT_TOKEN=<client-side-token>
PADDLE_PRICE_ID=<price-id>
Create or update the page where the owner wants the buy button. Use the PaddleCheckout component:
---
import PaddleCheckout from '../components/PaddleCheckout.astro';
---
<PaddleCheckout
clientToken="CLIENT_TOKEN_FROM_CONFIG"
priceId="PRICE_ID_FROM_CONFIG"
label="Buy Now"
/>
Read the token and price ID from .site-config and inject them.
The component has no inline script: the site's CSP has no 'unsafe-inline' (ADR-0008), so the props travel as data-paddle-* attributes on the button and a bundled first-party loader, src/scripts/paddle-checkout.ts, reads them. On a site scaffolded before that loader existed, copy both ${CLAUDE_PLUGIN_ROOT}/template/src/components/PaddleCheckout.astro and ${CLAUDE_PLUGIN_ROOT}/template/src/scripts/paddle-checkout.ts into the site, and make sure the site's astro.config.ts has the vite.build.assetsInlineLimit setting from ${CLAUDE_PLUGIN_ROOT}/template/astro.config.ts — without it Astro inlines small scripts into the page and the CSP blocks them. Never "fix" a blocked checkout by adding 'unsafe-inline' to the CSP.
If the owner wants multiple products, each gets its own PaddleCheckout component with a different priceId. They can all share the same clientToken.
The shipped public/_headers does not allow Paddle's domains (cdn.paddle.com, sandbox-cdn.paddle.com, buy.paddle.com, sandbox-buy.paddle.com, checkout.paddle.com, sandbox-checkout.paddle.com, log.paddle.com); without this step the site builds fine and then breaks in production. Make sure ECOMMERCE_PROVIDER=paddle 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.
Ensure .site-config has:
ECOMMERCE_PROVIDER=paddle
PADDLE_CLIENT_TOKEN=<client-side-token>
PADDLE_PRICE_ID=<price-id>
Run npm run build to ensure the site builds cleanly with the Paddle component.
Tell the owner:
"Your checkout is set up! When visitors click the buy button, Paddle opens a secure checkout overlay right on your site — no redirect needed. Paddle handles payment, tax, and delivery.
To manage products, subscriptions, and payouts, use your Paddle dashboard at https://dashboard.paddle.com.
Want to preview it?"
If the build fails, diagnose and fix before presenting.
The component auto-detects sandbox mode from the token prefix (test_ = sandbox, live_ = production). Both sandbox and production Paddle domains are included in the CSP so the owner can test without CSP changes.
When the owner is ready to go live:
"To switch from sandbox to production, replace your
test_token with yourlive_token in.site-config. The price ID stays the same if you've set it up in both environments."
When the owner asks to add another product, place an additional PaddleCheckout component with a different priceId. All products share the same clientToken.
If the owner is selling simple digital downloads (files, templates, presets) without subscriptions or license management, suggest Polar instead — it's simpler and indie-web-aligned. Paddle is the right choice when the owner needs:
After setup, the /anglesite:add-store skill deploys the ecommerce webhook worker for revenue tracking. If this skill was invoked directly (not via add-store), set up the Paddle webhook:
npx wrangler deploy --config worker/wrangler-ecommerce.tomlnpx wrangler secret put PADDLE_WEBHOOK_SECRET --config worker/wrangler-ecommerce.tomltransaction.completed → URL: https://ecommerce-webhooks.<subdomain>.workers.dev/webhook/paddleWhat SKILL.md sets; muted values are Claude Code's defaults
Use when the owner sells software, licenses, SaaS subscriptions, or usage-based plans and wants Paddle to handle billing and tax.
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