본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

stripe-payments

kjaylee 제작

Web & Frontend Development
—아직 평가 없음
내 평가

요약

Best practices for Stripe payment integration.

설명

이 스킬이 하는 일

Best practices guide for integrating Stripe payments into games and web apps. Covers CheckoutSessions, subscriptions via Billing API, embedded checkout, and multi-party payments with Connect. Includes a list of deprecated APIs to avoid.

Codifies which Stripe APIs are current versus deprecated, preventing teams from accidentally building on legacy endpoints like Charges or Sources.

사용 시점

  • Adding a one-time purchase flow to a web game
  • Setting up monthly subscriptions for a SaaS app
  • Selling in-app items with metadata tracking
  • Building a marketplace that pays out to multiple developers
  • Accepting donations with Payment Links

예시 워크플로

입력

User asks: how do I add a $9.99 one-time purchase to my game

에이전트
  1. 1

    Create a CheckoutSession on the server with mode set to 'payment'

  2. 2

    Define line_items using price_data with unit_amount in cents

  3. 3

    Set success_url and cancel_url pointing to game domain

  4. 4

    Return session.url to the client and redirect the user

  5. 5

    Verify payment via webhook signature on the server

출력

A working Stripe-hosted checkout flow for a one-time game purchase

요구 사항

  • Stripe account
  • STRIPE_SECRET_KEY environment variable
  • Stripe webhook secret for signature verification

설치

clawhub install kjaylee/stripe-payments

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크