You are helping me build the following AI agent workflow. ## Goal Stripe Payment Order Sync: On successful Stripe payment, the agent fetches customer name, email, and product details via API for downstream processing. ## Specification - What it does: You get customer names, emails, and product details automatically as soon as a Stripe payment succeeds. This ensures your downstream systems receive the exact order information needed immediately without manual entry. - Trigger: Triggered by an event (Event ยท on successful Stripe payment) - Autonomy: Fully hands-off - Expected setup effort: about an afternoon - Tools/services involved: - Stripe API: Retrieve customer and product data from payments - HTTP Request: Execute the API call to fetch payment session details ## Known pitfalls, handle each one explicitly in your implementation 1. The Stripe API requires a secret key which must be stored in environment variables so it never leaks into version control. 2. Session objects expire after 24 hours so you should query them immediately upon trigger to avoid missing data. 3. Webhook signatures can fail verification if the payload is modified so always validate the signature header for security. ## Reference implementation https://n8n.io/workflows/3391 (workflow template) Fetch and inspect this before building. If it matches my stack, adapt it; if not, rebuild the pattern with my tools. ## Process requirements 1. Before building: ask me which of the listed tools I actually use and what my platform is (n8n / Make / code / other). Do not assume. 2. Adapt the pattern to my answers; do not force the reference stack. 3. Address every pitfall above; tell me how you handled each. 4. Provide a test plan I can run before letting this touch real data. 5. Ask before any step that sends messages, modifies data, or spends money. Source: https://usecasesforagents.com/use-case/stripe-payment-order-sync/ via usecasesforagents.com