stripe-payments

0
0
Source

Best practices for Stripe payment integration. Use when implementing payments, subscriptions, checkout flows, or any monetization feature in games or web apps. Covers CheckoutSessions, Payment Element, subscriptions, and Connect.

Install

mkdir -p .claude/skills/stripe-payments && curl -L -o skill.zip "https://mcp.directory/api/skills/download/8526" && unzip -o skill.zip -d .claude/skills/stripe-payments && rm skill.zip

Installs to .claude/skills/stripe-payments

About this skill

Stripe Payments Integration

게임/웹앱 수익화를 위한 Stripe 결제 통합 가이드.

핵심 원칙

반드시 사용

  • CheckoutSessions API — 원타임 결제 + 구독의 기본
  • Stripe 호스트 체크아웃 또는 임베디드 체크아웃 우선
  • 동적 결제 수단 — 대시보드에서 활성화 (payment_method_types 하드코딩 금지)
  • 최신 API 버전 + SDK 사용

절대 금지

  • ❌ Charges API (레거시, PaymentIntents로 마이그레이션)
  • ❌ Card Element / Payment Element card 모드 (레거시)
  • ❌ Sources API (deprecated)
  • ❌ Tokens API (SetupIntents 사용)
  • ❌ payment_method_types 하드코딩 (동적 결제 수단 사용)

우리 게임/앱에 적용

시나리오별 선택

수익화 유형 → 무엇을 파는가?
├─ 일회성 게임 구매 → CheckoutSessions (one-time)
├─ 인앱 구매/아이템 → CheckoutSessions + metadata
├─ 월정액 구독 → Billing API + CheckoutSessions
├─ 기부/후원 → Payment Links (가장 간단)
└─ 마켓플레이스 → Stripe Connect (destination charges)

기본 구현 패턴

// 서버 (Node.js)
const session = await stripe.checkout.sessions.create({
  mode: 'payment',  // 또는 'subscription'
  line_items: [{
    price_data: {
      currency: 'usd',
      product_data: { name: 'Game Premium' },
      unit_amount: 999,  // $9.99 (센트 단위!)
    },
    quantity: 1,
  }],
  success_url: 'https://eastsea.monster/thanks?session_id={CHECKOUT_SESSION_ID}',
  cancel_url: 'https://eastsea.monster/games/',
});
// session.url로 리다이렉트

구독 모델 (SaaS/게임 프리미엄)

  • Billing API → 구독 설계 가이드: docs.stripe.com/billing/subscriptions/designing-integration
  • CheckoutSessions + Billing 조합 우선
  • 웹훅으로 구독 상태 변경 감지

플랫폼 (여러 게임 개발자) → Connect

  • destination charges — 우리가 liability 수용
  • on_behalf_of 파라미터로 merchant of record 제어
  • charge type 혼합 금지

보안 체크리스트

  • 서버사이드에서만 시크릿 키 사용
  • 웹훅 시그니처 검증
  • 클라이언트에 금액/가격 하드코딩 금지 (서버에서 생성)
  • Go-live 체크리스트 완료: docs.stripe.com/get-started/checklist/go-live
  • HTTPS 필수

참고 문서

  • 통합 옵션: docs.stripe.com/payments/payment-methods/integration-options
  • API 투어: docs.stripe.com/payments-api/tour
  • Go-live 체크리스트: docs.stripe.com/get-started/checklist/go-live

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

1,1421,171

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

969933

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

683829

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

691549

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

797540

pdf-to-markdown

aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.

697374

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.