Context Hub
Context Hub
Payments
Auth
Database
AI
Skills
Agent Access

Payment Intents

Docs

Create and confirm one-time payments. Handles authentication, webhooks, and refund flows.

Fetch in your agent:
chub get stripe/payment-intents --lang ts
stripe/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

Cart

Your cart is empty

Browse skills and add them here

Browse Skills →