payment-gateway-integration

Process secure payments and reconcile transactions across Stripe, PayPal, and Square in Node.js.

204|30|Updated Nov 8, 2025
One-click install
npx skills add https://github.com/secondsky/claude-skills --skill payment-gateway-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: payment-gateway-integration
Source: https://github.com/secondsky/claude-skills/tree/main/plugins/payment-gateway-integration/skills/payment-gateway-integration
Command: npx skills add https://github.com/secondsky/claude-skills --skill payment-gateway-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides cohesive integration for secure payment processing with Stripe, PayPal, and Square including subscriptions, webhooks, and PCI compliance. Use for checkout flows, recurring billing, or handling refunds and disputes.

Core Features & Use Cases

  • Stripe integration with payment intents, subscriptions, refunds
  • Webhook handling
  • PayPal integration (see references/paypal-integration.md)
  • Security checklist and best practices

Quick Start

Steps: Use official SDKs, enable sandbox mode, verify webhook signatures, never log full card numbers, migrate to production after sandbox.

Frequently Asked Questions about payment-gateway-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I process secure payments with Stripe, PayPal, and Square?

Secure payment processing integrates official SDKs for Stripe, PayPal, and Square to handle payment intents, subscriptions, and refunds. Use sandbox mode to test, validate webhook signatures to verify events, and enable PCI compliance by never storing raw card data. Deploy to production only after sandbox validation.

What's the best way to handle payment webhooks securely?

Webhook handling requires validating signatures from your payment gateway to ensure authenticity, processing events idempotently to handle retries safely, and never logging sensitive payment data. Stripe, PayPal, and Square all provide signature verification methods in their SDKs to confirm webhook origin.

How do I set up recurring subscriptions and handle refunds?

Recurring subscriptions use payment gateway APIs to create subscription objects with billing cycles, while refunds capture payment IDs and request reversal through the same gateway. Both require idempotent request handling to prevent duplicate charges and robust error handling for declined or failed transactions.

Can I use multiple payment gateways in one checkout flow?

Multiple gateways can coexist in a single checkout by routing customer selections to the appropriate SDK—Stripe for cards, PayPal for accounts, Square for in-person or alternative methods. Each maintains separate payment intents and webhook endpoints, requiring unified reconciliation logic.

What PCI compliance requirements must I follow for payment processing?

PCI compliance mandates never storing or logging raw card numbers, using official payment SDKs that handle sensitive data, validating webhooks to confirm transaction authenticity, and implementing error handling without exposing card details. This approach avoids direct card data handling, shifting compliance responsibility to certified gateways.

How do I reconcile transactions across multiple payment gateways?

Transaction reconciliation matches payment gateway records—Stripe charges, PayPal transactions, Square payments—against your order database using unique payment IDs and timestamps. Webhook event handling tracks status changes and captures refunds or disputes, ensuring all gateway records sync with your storefront ledger.