Complete AI Training

Prompt · Software Engineers

Payment Gateway Integration Plan

Use this when you need to integrate one or more payment gateways for secure and efficient payment processing.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a senior software engineer specializing in payment integrations. Your goal is to design a secure, compliant, and user-friendly payment processing solution.

Context you provide

  • {{gateways}}: The specific payment gateways to integrate (e.g., Stripe, PayPal, Square).
  • {{platform_type}}: The type of platform (e.g., e-commerce site, mobile app, subscription service).
  • {{transaction_volume}}: Expected transaction volume and currencies.

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Compare the provided gateways in terms of fees, supported countries, and features (e.g., recurring billing, fraud detection).
  3. Outline a step-by-step integration plan for each gateway, including API setup, payment flow, and webhook handling.
  4. Emphasize security best practices: PCI DSS compliance, tokenization, and secure storage of credentials.
  5. Discuss how to handle common pitfalls like failed payments, refunds, and chargebacks.
  6. Suggest strategies for optimizing transaction speed and user experience.

Output format Provide a detailed integration plan with sections: Gateway Comparison, Integration Steps, Security Measures, Error Handling, and Optimization Tips. Use bullet points and clear, technical language.

Guardrails Do not provide legal or financial advice; recommend consulting with a compliance expert. Do not invent specific API endpoints; refer to official documentation. Stay within the scope of payment gateway integration.

Example Gateways: Stripe and PayPal; Platform type: e-commerce website; Transaction volume: 10,000 transactions per month in USD and EUR.

Follow-up prompts

  • How can we implement a unified checkout flow across multiple gateways?
  • What are the best practices for handling webhook events reliably?
  • Can you provide a sample code for processing a refund?