security-review-owasp-third-party-payment-gateway-integration

Analyze third-party payment gateway integrations for order tampering and payment-state forgery.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-third-party-payment-gateway-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review-owasp-third-party-payment-gateway-integration
Source: https://github.com/sjinks/ai-owasp-skillset/tree/main/.github/skills/security-review-owasp-third-party-payment-gateway-integration
Command: npx skills add https://github.com/sjinks/ai-owasp-skillset --skill security-review-owasp-third-party-payment-gateway-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps reviewers find weaknesses in third-party payment gateway integrations that could let attackers tamper with order values, spoof payment completion, replay transactions, or trigger fulfillment without verified payment state.

Core Features & Use Cases

  • Order Integrity Review: Checks that prices, discounts, taxes, currencies, and product details are recalculated on the server from trusted data.
  • Callback and Verification Review: Evaluates webhook signatures, callback authentication, redirect-return handling, and server-to-server confirmation before fulfillment.
  • Replay and Fraud Controls: Assesses idempotency, duplicate transaction handling, logging, and fraud telemetry for suspicious payment activity.

Quick Start

Use the security-review-owasp-third-party-payment-gateway-integration skill to review the payment flow in the selected files and identify any place where untrusted input, callback trust, or fulfillment sequencing could be abused.

Frequently Asked Questions about security-review-owasp-third-party-payment-gateway-integration

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

FAQPage Schema
How do I prevent order tampering in a third-party payment gateway integration?

Prevent order tampering by recalculating prices, discounts, taxes, and currencies on the server from trusted data. Untrusted client input should never dictate the final amount. This Skill analyzes your payment initialization flow to verify server-side amount validation is enforced.

How do I verify webhook signatures for payment callbacks?

Verify webhook signatures by validating callback authentication and redirect-return handling. This Skill evaluates your callback logic to ensure spoofed payment completion attempts are blocked and server-to-server confirmation occurs before fulfillment.

How do I implement idempotency to stop replay attacks in payment processing?

Implement idempotency to stop replay attacks by enforcing duplicate transaction handling and replay resistance. This Skill assesses your codebase for idempotent fulfillment controls and fraud telemetry logging to identify suspicious payment activity.

What is payment-state forgery and how do I secure fulfillment sequencing?

Payment-state forgery tricks systems into fulfilling orders without verified payment. Secure fulfillment sequencing requires server-to-server verification before releasing goods. This Skill analyzes your operational controls to ensure fulfillment only triggers after confirmed payment state.

Does this security review work with server-to-server verification and redirect returns?

This security review works with server-to-server verification, redirect returns, and webhooks. It analyzes your payment gateway integration code and configuration to identify untrusted input vulnerabilities and callback trust issues across all return types.