Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Stripe Integration Kit.

Features

  • Full checkout session lifecycle (create → complete → webhook)
  • Payment intent state machine (requires_method → processing → succeeded)
  • Customer CRUD with metadata support
  • Webhook signature generation and HMAC-SHA256 verification
  • Idempotency key handling to prevent duplicate charges
  • JSON file-based persistence (swap for your real database)
  • Supports 16 currencies with minimum amount validation
  • Full demo mode showing the end-to-end flow
  • Python stdlib only — zero dependencies

Quick Start

bash
# Run the full demo (creates customer, payment intent, checkout session)
python src/stripe_integration_kit.py --action demo

# Create a customer
python src/stripe_integration_kit.py --action create-customer --email user@example.com --name "Jane Dev"

# Create a $49.99 payment intent
python src/stripe_integration_kit.py --action create-intent --amount 4999 --currency usd

# Confirm a payment
python src/stripe_integration_kit.py --action confirm-intent --intent-id pi_abc123

# Create a checkout session
python src/stripe_integration_kit.py --action create-checkout --customer cus_001 --amount 2999

# List all customers
python src/stripe_integration_kit.py --action list-customers
Chapter 2

CLI Reference

Follow this guide to get Stripe Integration Kit up and running in your environment.

CLI Reference

FlagDescription
--action, -aAction to perform (required)
--customerCustomer ID (cus_...)
--emailCustomer email address
--nameCustomer or item name
--amountAmount in cents (4999 = $49.99)
--currencyISO 4217 currency code (default: usd)
--intent-idPayment intent ID (pi_...)
--session-idCheckout session ID (cs_...)
--payload-fileWebhook payload JSON file for verification
--signatureStripe-Signature header value
--data-dirData storage directory (default: ./stripe_data)
--verbose, -vEnable debug logging

Available Actions

ActionDescriptionRequired Flags
demoRun full end-to-end demoNone
create-customerCreate a new customer--email
list-customersList all customersNone
create-intentCreate a payment intent--amount
confirm-intentConfirm/charge a payment--intent-id
cancel-intentCancel a payment intent--intent-id
create-checkoutCreate a checkout session--customer
complete-checkoutComplete a checkout session--session-id
verify-webhookVerify webhook signature--payload-file, --signature
Chapter 3
🔒 Available in full product

Configuration

Chapter 4
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Stripe Integration Kit and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
📦 Free sample included — download another copy for the full product.
Stripe Integration Kit v1.0.0 — Free Preview