Skip to content
secondsky avatar

Payment Gateway Integration

Payment processing guidance for Stripe, PayPal, and Square with subscriptions, webhooks, and refunds.

CCM score
50 of 100
skills.sh installs
481
GitHub stars
257
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers checkout flows, recurring billing, refunds, and disputes across Stripe, PayPal, and Square integrations
  • Includes Node.js Stripe code for payment intents, subscriptions, and refunds, plus a PayPal reference guide
  • Enforces webhook signature verification, no raw card data handling, and idempotency keys with retry logic
  • Designed for developers adding secure payment flows to web applications that must meet PCI compliance

Install

$ npx -y skills add secondsky/claude-skills --skill payment-gateway-integration -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Payment Gateway Integration

Integrate secure payment processing with proper error handling and compliance.

Stripe Integration (Node.js)

const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY);

class PaymentService {
  async createPaymentIntent(amount, currency, customerId) {
    return stripe.paymentIntents.create({
      amount: Math.round(amount * 100), // Convert to cents
      currency,
      customer: customerId,
      automatic_payment_methods: { enabled: true }
    });
  }

  async createSubscription(customerId, priceId) {
    return stripe.subscriptions.create({
      customer: customerId,
      items: [{ price: priceId }],
      payment_behavior: 'default_incomplete',
      expand: ['latest_invoice.payment_intent']
    });
  }

  async refund(paymentIntentId, amount = null) {
    const params = { payment_intent: paymentIntentId };
    if (amount) params.amount = Math.round(amount * 100);
    return stripe.refunds.create(params);
  }
}

Webhook Handling

app.post('/webhooks/stripe', express.raw({ type: 'application/json' }), (req, res) => {
  const sig = req.headers['stripe-signature'];

Details

Repository
github.com/secondsky/claude-skills
Categories
Finance & Trading, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the payment-gateway-integration skill do?

payment-gateway-integration integrates payment processing with Stripe, PayPal, or Square, covering subscriptions, webhooks, and PCI compliance. It guides checkout flows, recurring billing, and handling refunds and disputes in your app.

How do I install the payment-gateway-integration skill?

Run npx -y skills add secondsky/claude-skills --skill payment-gateway-integration -y in your project. Once installed, payment-gateway-integration gives your agent Stripe and PayPal code for payment intents, subscriptions, refunds and webhook signature checks.

Does payment-gateway-integration need Stripe keys or other credentials?

Yes, the Stripe examples in payment-gateway-integration read STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET from environment variables. Its PayPal path is described in a separate reference file inside the skill.

Where does payment-gateway-integration fit among finance skills?

payment-gateway-integration is listed in the Finance & Trading category on Claude Marketplaces, alongside wind-mcp-skill, stripe-best-practices, wind-find-finance-skill, convex-billing, and create-payment-credential. Its own focus is wiring Stripe, PayPal or Square checkout and webhooks into an application.

More from secondsky/claude-skills

All 116

Similar to Payment Gateway Integration

More Finance & Trading