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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
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
- If any context is missing, ask for it before proceeding.
- Compare the provided gateways in terms of fees, supported countries, and features (e.g., recurring billing, fraud detection).
- Outline a step-by-step integration plan for each gateway, including API setup, payment flow, and webhook handling.
- Emphasize security best practices: PCI DSS compliance, tokenization, and secure storage of credentials.
- Discuss how to handle common pitfalls like failed payments, refunds, and chargebacks.
- 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?