कंटेंट पर जाएँ
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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक