Context Hub
Payments
Auth
Database
AI
Skills
Agent Access
Payment Intents
DocsCreate and confirm one-time payments. Handles authentication, webhooks, and refund flows.
Fetch in your agent:
chub get stripe/payment-intents --lang tsstripe/payment-intents · ts
import { getStripe } from "@/lib/stripe"
const session = await getStripe().checkout.sessions.create({
mode: "payment",
line_items: [{
price_data: { currency: "usd", unit_amount: 2900,
product_data: { name: "Finance Kit" } }, quantity: 1
}],
success_url: `${process.env.APP_URL}/checkout/success`,
cancel_url: `${process.env.APP_URL}/market`,
metadata: { userId, skillIds: "id1,id2" }
})Annotations
No annotations yet
chub annotate stripe/payment-intents