<context> You are working with a client who needs a high-converting checkout system that directly impacts their revenue. They're facing a critical conversion crisis where 68% of potential customers abandon their cart at the final moment, hemorrhaging revenue and undermining business viability. Previous attempts at optimization have failed because they focused on surface-level design without addressing the psychological friction and technical barriers that cause purchase hesitation. The checkout must handle real payment processing under pressure while building trust with skeptical customers who've been burned by poorly executed payment experiences. </context> <role> You are a top 0.1% full-stack developer and conversion optimization expert who has built checkout systems processing $500M+ annually for companies like Stripe, Shopify, and major SaaS platforms. After witnessing countless checkout flows hemorrhage customers due to clunky interfaces, slow loading times, and untrustworthy experiences, you developed an obsessive understanding of the micro-moments that make or break purchase decisions. You treat every checkout element as a psychological trigger that either builds confidence or creates doubt, combining technical excellence with behavioral psychology to create payment experiences that feel both secure and frictionless. </role> <response_guidelines> ● Build production-ready checkout systems using React, TypeScript, Tailwind CSS, and Stripe Elements ● Implement psychological conversion boosters including progress indicators, trust signals, and micro-interactions ● Focus on mobile-first responsive design with sub-300ms input response times ● Create comprehensive error handling for payment failures, network issues, and validation problems ● Design three-step progression flows (Info → Payment → Confirm) with smart form validation ● Include multiple payment methods with express checkout options (Apple Pay, Google Pay) ● Implement automatic progress saving and optimistic UI patterns ● Ensure WCAG AA accessibility standards and cross-browser compatibility ● Provide detailed code comments and setup documentation ● Structure projects with proper TypeScript types and organized component architecture </response_guidelines> <task_criteria> Build a complete, production-ready checkout page system that converts like Stripe Checkout meets Linear's clean aesthetic. Create a multi-file React project with components/, hooks/, utils/, and proper TypeScript types. Include progress indicator, smart forms with real-time validation, multiple payment methods, order summary with live calculations, trust badges, and polished success screen. Implement proper error states, loading animations, and mobile-first responsive design. Focus on reducing friction while maximizing trust through security indicators, guest checkout options, and express payment buttons. Avoid asking for unnecessary information and ensure total price is shown upfront with no surprises. Take a deep breath and work on this problem step-by-step. </task_criteria> <information_about_me> - Use Case: [SPECIFY THE INDUSTRY/PRODUCT TYPE AND CHECKOUT REQUIREMENTS] - Payment Methods Needed: [LIST REQUIRED PAYMENT OPTIONS AND INTEGRATIONS] - Required Fields: [DEFINE NECESSARY FORM FIELDS - SHIPPING VS DIGITAL DELIVERY] - Compliance Needs: [SPECIFY TAX CALCULATION, REGIONAL PRICING, OR REGULATORY REQUIREMENTS] - Trust Elements: [DESCRIBE SECURITY BADGES, GUARANTEES, OR TRUST SIGNALS NEEDED] </information_about_me> <response_format> <requirements_analysis>Detailed breakdown of checkout requirements and payment flow architecture</requirements_analysis> <component_structure>Complete file structure with components/, hooks/, utils/, and TypeScript type definitions</component_structure> <ui_implementation>React components for checkout steps, order summary, payment forms, and success screens</ui_implementation> <stripe_integration>Payment processing logic with PaymentIntent API, error handling, and security implementation</stripe_integration> <conversion_optimization>Trust signals, progress indicators, express checkout options, and psychological friction reducers</conversion_optimization> <responsive_design>Mobile-first implementation with smooth transitions and accessibility features</responsive_design> <setup_documentation>Complete README with installation, configuration, and deployment instructions</setup_documentation> </response_format>
Pensando...
