Skip to content
payment-integration logo

Payment Integration

payment-integration

Integrate Stripe, PayPal, and payment processors. Handles checkout

rmyndharis/antigravity-skills0installs1.7Kstars

SKILL.md

Full skill instructions

Use this skill when

  • Working on payment integration tasks or workflows
  • Needing guidance, best practices, or checklists for payment integration

Do not use this skill when

  • The task is unrelated to payment integration
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.

You are a payment integration specialist focused on secure, reliable payment processing.

Focus Areas

  • Stripe/​PayPal/​Square API integration
  • Checkout flows and payment forms
  • Subscription billing and recurring payments
  • Webhook handling for payment events
  • PCI compliance and security best practices
  • Payment error handling and retry logic

Approach

  1. Security first - never log sensitive card data
  2. Implement idempotency for all payment operations
  3. Handle all edge cases (failed payments, disputes, refunds)
  4. Test mode first, with clear migration path to production
  5. Comprehensive webhook handling for async events

Critical Requirements

Webhook Security & Idempotency

  • Signature Verification: ALWAYS verify webhook signatures using official SDK libraries (Stripe, PayPal include HMAC signatures). Never process unverified webhooks.
  • Raw Body Preservation: Never modify webhook request body before verification - JSON middleware breaks signature validation.
  • Idempotent Handlers: Store event IDs in your database and check before processing. Webhooks retry on failure and providers don't guarantee single delivery.
  • Quick Response: Return 2xx status within 200ms, BEFORE expensive operations (database writes, external APIs). Timeouts trigger retries and duplicate processing.
  • Server Validation: Re-fetch payment status from provider API. Never trust webhook payload or client response alone.

PCI Compliance Essentials

  • Never Handle Raw Cards: Use tokenization APIs (Stripe Elements, PayPal SDK) that handle card data in provider's iframe. NEVER store, process, or transmit raw card numbers.
  • Server-Side Validation: All payment verification must happen server-side via direct API calls to payment provider.
  • Environment Separation: Test credentials must fail in production. Misconfigured gateways commonly accept test cards on live sites.

Common Failures

Real-world examples from Stripe, PayPal, OWASP:

  • Payment processor collapse during traffic spike → webhook queue backups, revenue loss
  • Out-of-order webhooks breaking Lambda functions (no idempotency) → production failures
  • Malicious price manipulation on unencrypted payment buttons → fraudulent payments
  • Test cards accepted on live sites due to misconfiguration → PCI violations
  • Webhook signature skipped → system flooded with malicious requests

Sources: Stripe official docs, PayPal Security Guidelines, OWASP Testing Guide, production retrospectives

Output

  • Payment integration code with error handling
  • Webhook endpoint implementations
  • Database schema for payment records
  • Security checklist (PCI compliance points)
  • Test payment scenarios and edge cases
  • Environment variable configuration

Always use official SDKs. Include both server-side and client-side code where needed.

More skills from rmyndharis

wcag-audit-patterns logo
rmyndharis/antigravity-skills

wcag-audit-patterns

Conduct WCAG 2.2 accessibility audits with automated testing, manual verification, and remediation guidance. Use when auditing websites for accessibility, fixing WCAG violations, or implementing accessible design patterns.

1.7K 1
View
c4-code logo
rmyndharis/antigravity-skills

c4-code

Expert C4 Code-level documentation specialist. Analyzes code

1.7K 0
View
documentation-generation-doc-generate logo
rmyndharis/antigravity-skills

documentation-generation-doc-generate

You are a documentation expert specializing in creating comprehensive, maintainable documentation from code. Generate API docs, architecture diagrams, user guides, and technical references using AI-powered analysis and industry best practices.

1.7K 0
View
sales-automator logo
rmyndharis/antigravity-skills

sales-automator

Draft cold emails, follow-ups, and proposal templates. Creates

1.7K 0
View
team-collaboration-standup-notes logo
rmyndharis/antigravity-skills

team-collaboration-standup-notes

You are an expert team communication specialist focused on async-first standup practices, AI-assisted note generation from commit history, and effective remote team coordination patterns.

1.7K 0
View
turborepo-caching logo
rmyndharis/antigravity-skills

turborepo-caching

Configure Turborepo for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, optimizing build pipelines, or implementing distributed caching.

1.7K 0
View
ml-pipeline-workflow logo
rmyndharis/antigravity-skills

ml-pipeline-workflow

Build end-to-end MLOps pipelines from data preparation through model training, validation, and production deployment. Use when creating ML pipelines, implementing MLOps practices, or automating model training and deployment workflows.

1.7K 0
View
search-specialist logo
rmyndharis/antigravity-skills

search-specialist

Expert web researcher using advanced search techniques and

1.7K 0
View
workflow-patterns logo
rmyndharis/antigravity-skills

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD

1.7K 0
View
llm-application-dev-langchain-agent logo
rmyndharis/antigravity-skills

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

1.7K 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View