Skip to content

Payment Integration Examples

Payment processing implementations across different platforms and use cases.

Stripe Integration

Subscription Billing

bash
# MakerKit with Stripe (v5)
/create makerkit-nextjs saas-billing

# Use payment prompts:
/setup-stripe "Configure subscription plans"
/add-subscription-plan "Basic, Pro, and Enterprise tiers"

# Track billing patterns:
/document-feature "Stripe subscription architecture"

Implementation Details (v5)

bash
# Webhook handling
/add-webhook "Handle Stripe subscription events"

# Customer portal
/add-feature "Stripe customer portal integration"

# Usage-based billing
/orchestrate "Add metered billing for API usage"

# Memory tracks:
# - Webhook retry strategies
# - Idempotency implementation
# - Billing edge cases handled

One-Time Payments

E-commerce Checkout

bash
# Product sales
/add-feature "Single product checkout flow"

# Cart system
/orchestrate "Shopping cart with Stripe checkout"

# Digital downloads
/add-feature "Automated digital delivery after payment"

Mobile Payments

In-App Purchases

bash
# React Native app
/create "mobile-store" using react-native-expo

# iOS payments
/add-native-features "Apple In-App Purchase integration"

# Android payments
/add-native-features "Google Play Billing integration"

Mobile Wallets

bash
# Apple Pay
/orchestrate "Add Apple Pay for iOS app"

# Google Pay
/orchestrate "Add Google Pay support"

Cryptocurrency Payments

Web3 Integration

bash
# Crypto checkout
/orchestrate "Accept ETH and USDC payments"

# Wallet connection
/add-feature "MetaMask and WalletConnect integration"

# Smart contracts
/orchestrate "Deploy payment smart contract"

International Payments

Multi-Currency Support

bash
# Currency conversion
/add-feature "Support 25+ currencies with auto-conversion"

# Localized pricing
/orchestrate "Region-based pricing tiers"

# Tax handling
/add-feature "Automated tax calculation by country"

Payment Security

PCI Compliance

bash
# Secure card handling
/security-audit "Ensure PCI DSS compliance"

# Tokenization
/add-feature "Card tokenization with Stripe Elements"

# 3D Secure
/orchestrate "Implement 3D Secure authentication"

Subscription Management

Feature Access

bash
# Plan limits
/add-feature "Enforce plan-based feature limits"

# Upgrade flows
/orchestrate "In-app upgrade prompts and flows"

# Downgrade handling
/add-feature "Graceful plan downgrade with data retention"

Billing Cycles

bash
# Trial periods
/add-subscription-plan "14-day free trial"

# Proration
/orchestrate "Implement fair proration logic"

# Billing intervals
/add-feature "Monthly and annual billing options"

Payment Methods

Alternative Payments

bash
# Bank transfers
/orchestrate "ACH and SEPA direct debit"

# Buy now, pay later
/add-feature "Klarna and Afterpay integration"

# Regional methods
/orchestrate "Add Alipay and WeChat Pay"

Revenue Optimization

Pricing Experiments

bash
# A/B testing
/add-feature "Price testing framework"

# Dynamic pricing
/orchestrate "Implement dynamic pricing based on demand"

# Discount codes
/add-feature "Coupon and discount code system"

Retention Features

bash
# Dunning management
/add-feature "Failed payment retry logic"

# Churn prevention
/orchestrate "Cancellation flow with retention offers"

# Win-back campaigns
/add-feature "Re-engagement pricing for churned users"

Marketplace Payments

Split Payments

bash
# Platform fees
/orchestrate "Implement marketplace with 10% platform fee"

# Vendor payouts
/add-feature "Automated vendor payout system"

# Escrow
/orchestrate "Escrow system for buyer protection"

Accounting Integration

Financial Reporting

bash
# Revenue tracking
/add-feature "MRR and ARR dashboard"

# Export functionality
/orchestrate "QuickBooks and Xero integration"

# Invoicing
/add-feature "Automated invoice generation"

Testing Payments

Test Mode

bash
# Stripe test mode
/orchestrate "Set up comprehensive payment testing"

# Test cards
/add-feature "Test card validation in development"

# Webhook testing
/orchestrate "Local webhook testing with ngrok"

Common Patterns

Checkout Flow

  1. Cart/selection
  2. Customer information
  3. Payment details
  4. Confirmation
  5. Receipt/access

Error Handling

bash
# Payment failures
/add-feature "Graceful payment failure handling"

# Retry logic
/orchestrate "Smart payment retry with backoff"

Compliance

Regional Requirements

bash
# GDPR compliance
/add-feature "GDPR-compliant payment data handling"

# SCA compliance
/orchestrate "Strong Customer Authentication for EU"

# Tax compliance
/add-feature "Automated tax reporting"

See Also

Built with ❤️ for the AI Coding community, by Praney Behl