Paypal Integration skill for Claude

Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management.

When Claude uses it

Use when implementing PayPal payments, processing online transactions, or building e-commerce checkout flows.

Paypal Integration SKILL.md

The full skill file from wshobson/agents (MIT).

PayPal Integration

Master PayPal payment integration including Express Checkout, IPN handling, recurring billing, and refund workflows.

When to Use This Skill

  • Integrating PayPal as a payment option
  • Implementing express checkout flows
  • Setting up recurring billing with PayPal
  • Processing refunds and payment disputes
  • Handling PayPal webhooks (IPN)
  • Supporting international payments
  • Implementing PayPal subscriptions

Core Concepts

1. Payment Products

PayPal Checkout

  • One-time payments
  • Express checkout experience
  • Guest and PayPal account payments

PayPal Subscriptions

  • Recurring billing
  • Subscription plans
  • Automatic renewals

PayPal Payouts

  • Send money to multiple recipients
  • Marketplace and platform payments

2. Integration Methods

Client-Side (JavaScript SDK)

  • Smart Payment Buttons
  • Hosted payment flow
  • Minimal backend code

Server-Side (REST API)

  • Full control over payment flow
  • Custom checkout UI
  • Advanced features

3. IPN (Instant Payment Notification)

  • Webhook-like payment notifications
  • Asynchronous payment updates
  • Verification required

Quick Start

// Frontend - PayPal Smart Buttons
<div id="paypal-button-container"></div>

<script src="https://www.paypal.com/sdk/js?client-id=YOUR_CLIENT_ID&currency=USD"></script>
<script>
  paypal.Buttons({
    createOrder: function(data, actions) {
      return actions.order.create({
        purchase_units: [{
          amount: {
            value: '25.00'
          }
        }]
      });
    },
    onApprove: function(data, actions) {
      return actions.order.capture().then(function(details) {
        // Payment successful
        console.log('Transaction completed by ' + details.payer.name.given_name);

        // Send to backend for verification
        fetch('/api/paypal/capture', {
          method: 'POST',
          headers: {'Content-Type': 'application/json'},
          body: JSON.stringify({orderID: data.orderID})
        });
      });
    }
  }).render('#paypal-button-container');
</script>
# Backend - Verify and capture order
from paypalrestsdk import Payment
import paypalrestsdk

paypalrestsdk.configure({
    "mode": "sandbox",  # or "live"
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET"
})

def capture_paypal_order(order_id):
    """Capture a PayPal order."""
    payment = Payment.find(order_id)

    if payment.execute({"payer_id": payment.payer.payer_info.payer_id}):
        # Payment successful
        return {
            'status': 'success',
            'transaction_id': payment.id,
            'amount': payment.transactions[0].amount.total
        }
    else:
        # Payment failed
        return {
            'status': 'failed',
            'error': payment.error
        }

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Testing

# Use sandbox credentials
SANDBOX_CLIENT_ID = "..."
SANDBOX_SECRET = "..."

# Test accounts
# Create test buyer and seller accounts at developer.paypal.com

def test_payment_flow():
    """Test complete payment flow."""
    client = PayPalClient(SANDBOX_CLIENT_ID, SANDBOX_SECRET, mode='sandbox')

    # Create order
    order = client.create_order(10.00)
    assert 'id' in order

    # Get approval URL
    approval_url = next((link['href'] for link in order['links'] if link['rel'] == 'approve'), None)
    assert approval_url is not None

    # After approval (manual step with test account)
    # Capture order
    # captured = client.capture_order(order['id'])
    # assert captured['status'] == 'COMPLETED'

How to install Paypal Integration

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/payment-processing/skills/paypal-integration#main ~/.claude/skills/paypal-integration

Codex

npx degit wshobson/agents/plugins/payment-processing/skills/paypal-integration#main ~/.codex/skills/paypal-integration

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Paypal Integration skill do?

Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management. Use when implementing PayPal payments, processing online transactions, or building e-commerce checkout flows.

+How do I install Paypal Integration in Claude Code?

Copy the skill folder into ~/.claude/skills/paypal-integration, for example with "npx degit wshobson/agents/plugins/payment-processing/skills/paypal-integration#main ~/.claude/skills/paypal-integration". Claude Code loads it automatically and uses it when a task matches.

+Does Paypal Integration work with ChatGPT or Codex?

Yes. Paypal Integration uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/paypal-integration. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Paypal Integration free?

Paypal Integration is published on GitHub by wshobson under the MIT license, which allows free use.

Related finance skills

  1. Finance Skills

    Pick the right finance skill: ratios, DCF, forecasts (financial-analyst), ARR, churn, CAC, LTV (saas-metrics-coach), month-end-close.

    alirezarezvani/claude-skills★ 30k
  2. Pricing

    When the user wants to set pricing and packaging, or asks what to charge, whether to raise prices, or how to move existing customers:…

    coreyhaines31/marketingskills★ 61k
  3. Invoice Organizer

    Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them…

    ComposioHQ/awesome-claude-skills★ 80k
  4. Startup Financial Modeling

    Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for…

    wshobson/agents★ 43k
  5. Stripe Integration

    Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks.

    wshobson/agents★ 43k
  6. Churn Prevention

    Use when designing a cancel flow, save offers, exit surveys or dunning emails, or cutting failed-payment churn.

    alirezarezvani/claude-skills★ 30k
  7. Financial Analyst

    Analyze financial statements, value a company with a DCF, explain budget variance, build rolling forecasts.

    alirezarezvani/claude-skills★ 30k
  8. Pricing Strategist

    Use when choosing or revisiting pricing: seat, usage, value-based, freemium or hybrid, Van Westendorp willingness-to-pay analysis, or…

    alirezarezvani/claude-skills★ 30k
  9. Pricing Strategy

    Use for SaaS pricing tiers, value metric, packaging, a pricing page or a price increase, before proposing numbers.

    alirezarezvani/claude-skills★ 30k

See all finance skills →

More skills from wshobson

  1. Pci Compliance

    Implement PCI DSS compliance requirements for secure handling of payment card data and payment systems.

    wshobson/agents★ 43k
  2. Postgresql Table Design

    Use this skill when designing or reviewing a PostgreSQL-specific schema.

    wshobson/agents★ 43k
  3. Postmortem Writing

    Write effective blameless postmortems with root cause analysis, timelines, and action items.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.