KS
Killer-Skills

autumn-add-payments — how to use autumn-add-payments how to use autumn-add-payments, autumn-add-payments setup guide, autumn-add-payments alternative, autumn-add-payments vs Stripe, autumn-add-payments install, what is autumn-add-payments, autumn-add-payments API documentation, autumn-add-payments Stripe integration

v1.0.0
GitHub

About this Skill

Essential for SaaS Builder Agents automating Stripe payment flows and subscription management. autumn-add-payments is a skill that automates Stripe payment processes, including checkout, upgrades, and cancellations, using APIs and Stripe URLs.

Features

Automates Stripe checkout and returns Stripe URL or preview data
Confirms purchases with `attach` command when card is already on file
Handles payment flow with `checkout` and `attach` commands
Provides Stripe checkout URL or preview data for new and returning customers
Supports upgrades, downgrades, and cancellations automatically

# Core Topics

usenotra usenotra
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
36
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add usenotra/notra/autumn-add-payments

Agent Capability Analysis

The autumn-add-payments MCP Server by usenotra is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use autumn-add-payments, autumn-add-payments setup guide, autumn-add-payments alternative.

Ideal Agent Persona

Essential for SaaS Builder Agents automating Stripe payment flows and subscription management.

Core Value

Automates the complete Stripe payment lifecycle, including checkout session generation, subscription upgrades, downgrades, and cancellations. Provides a seamless integration for handling both new customer checkout URLs and returning customer preview data through the attach method.

Capabilities Granted for autumn-add-payments MCP Server

Automating Stripe checkout session creation
Handling subscription upgrades and downgrades
Processing customer cancellations
Managing returning customer payments with card on file

! Prerequisites & Limits

  • Requires Stripe integration
  • Dependent on Autumn API documentation for latest implementation details
Project
SKILL.md
3.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Autumn Payments

Always consult docs.useautumn.com for code examples and latest API.

Autumn handles Stripe checkout, upgrades, downgrades, and cancellations automatically.


Quick Reference

Payment Flow

  1. checkout - Returns Stripe URL (new) or preview data (returning customer)
  2. attach - Confirms purchase when card already on file

Checkout Result

FieldDescription
urlStripe checkout URL (null if card on file)
productTarget product with scenario
current_productCustomer's current product
linesInvoice line items
totalAmount in major currency units
currencyCurrency code

Product Scenarios

ScenarioMeaningAction
newNot subscribedSubscribe
activeCurrent planCurrent Plan
scheduledScheduledAlready Scheduled
upgradeHigher tierUpgrade
downgradeLower tierDowngrade
renewCancelledRenew

React Implementation

tsx
1import { useCustomer, usePricingTable } from "autumn-js/react"; 2 3const { checkout, attach } = useCustomer(); 4const { products } = usePricingTable(); 5 6// Checkout flow 7const data = await checkout({ productId: "pro" }); 8if (data.url) { 9 window.location.href = data.url; // New customer 10} else { 11 // Show confirmation dialog, then: 12 await attach({ productId: "pro" }); 13} 14 15// Cancel 16const { cancel } = useCustomer(); 17await cancel({ productId: "pro" }); 18// Or downgrade to free: 19await attach({ productId: "free" });

Backend Implementation

typescript
1import { Autumn } from "autumn-js"; 2 3const autumn = new Autumn({ secretKey: process.env.AUTUMN_SECRET_KEY }); 4 5// Checkout 6const { data } = await autumn.checkout({ customer_id, product_id: "pro" }); 7if (data.url) return redirect(data.url); 8 9// Attach (after user confirms) 10await autumn.attach({ customer_id, product_id: "pro" }); 11 12// Get products with scenarios 13const { data: productsData } = await autumn.products.list({ customer_id });

Prepaid Pricing

For seat-based or prepaid products, pass quantities:

typescript
1await autumn.checkout({ 2 customer_id, 3 product_id: "credits_pack", 4 options: [{ feature_id: "credits", quantity: 500 }], 5});

Button Text Pattern

typescript
1function getButtonText(product: Product): string { 2 const { scenario, properties } = product; 3 if (properties?.has_trial) return "Start Trial"; 4 if (scenario === "active") return "Current Plan"; 5 6 const text = { upgrade: "Upgrade", downgrade: "Downgrade", new: "Subscribe" }; 7 return text[scenario] ?? "Enable"; 8}

Common Gotchas

  1. URL field - It's data.url, not data.checkout_url
  2. Don't build custom logic - Use products.list for scenarios
  3. Proration automatic - Autumn handles upgrade/downgrade proration
  4. Cancel via free - Prefer attaching free plan over hard cancel
  5. Success URL - Pass success_url to redirect after Stripe checkout

Resources

Related Skills

Looking for an alternative to autumn-add-payments or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication