skillfed

payment-gateway-integration

Connect your app to Stripe, PayPal, or Square for complete payment handling. The skill covers checkout flows, subscription billing, refunds, and webhook processing with built-in security practices and error handling.

Payment Gateway Integration lets you add secure checkout and recurring billing with Stripe, PayPal, or Square.

AI-generated summary based on this skill's SKILL.md

196 29 MIT updated by secondsky

Install

secondsky/claude-skills/payment-gateway-integration · repository language: TypeScript

git clone https://github.com/secondsky/claude-skills
cp -r claude-skills/plugins/payment-gateway-integration/skills/payment-gateway-integration ~/.claude/skills/payment-gateway-integration
npx skillfed install secondsky/claude-skills/payment-gateway-integration

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does payment-gateway-integration handle Stripe payment processing?

payment-gateway-integration provides complete Stripe integration including payment intent creation, secure checkout flows, and customer payment method management. It handles the full payment lifecycle from authorization through capture, with built-in error handling for failed transactions and automatic retry logic to improve success rates.

What is webhook handling for payments in this skill?

payment-gateway-integration implements reliable webhook processing for Stripe, PayPal, and Square with signature verification to ensure authenticity. It manages payment state transitions, handles asynchronous confirmations, and maintains consistency across payment status updates using idempotency keys to prevent duplicate processing.

How do I set up recurring billing and subscription management?

payment-gateway-integration simplifies subscription setup across all three gateways. It handles subscription creation, billing cycles, plan management, and automatic charge scheduling. The skill manages subscription state changes, handles failed renewals with retry logic, and provides dispute resolution tools for subscription-related issues.

Does payment-gateway-integration ensure PCI compliance?

Yes, payment-gateway-integration implements PCI compliance best practices including tokenization, secure checkout flows that never expose raw card data, and webhook signature verification. It follows security standards for all three payment providers and includes guidance on handling sensitive payment information safely.

How are refunds and payment disputes handled?

payment-gateway-integration provides refund processing capabilities for Stripe, PayPal, and Square with full and partial refund support. It manages dispute workflows, tracks refund status, and handles payment failure scenarios with appropriate error responses and logging for troubleshooting.

Can payment-gateway-integration be tested in sandbox mode?

Yes, payment-gateway-integration supports sandbox testing for all three payment gateways, allowing you to test checkout flows, subscriptions, webhooks, and error scenarios without processing real transactions. This enables safe development and validation before going live.

SKILL.md

rendered from the published skill — quoted content, verbatim

Payment Gateway Integration

Integrate secure payment processing with proper error handling and compliance.

Stripe Integration (Node.js)

```javascript 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 =

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 2 files
plugins/payment-gateway-integration/skills/payment-gateway-integration/SKILL.md
plugins/payment-gateway-integration/skills/payment-gateway-integration/references/paypal-integration.md

Related skills

Tags

payment-processing subscription-billing webhook-events pci-security checkout-flow refund-management fraud-prevention payment-state-machine multi-gateway-support