HISTORICAL SPECIFICATION: LEGACY E-COMMERCE CART & CHECKOUT Document Version: 1.2 Release Date: October 2024 Author: Engineering Architecture Team 1. CORE CART FUNCTIONS 1.1 Cart Session Expiration - Shopping cart sessions persist for exactly 24 hours. After 24 hours of inactivity, the cart items are cleared from Redis storage. 1.2 Coupon & Discount Application - The system supports single-coupon code applications. - Cumulative discounts are not permitted. - Coupon codes must be verified against their expiration date before subtracting the value from the subtotal. 2. LEGACY PAYMENT INTEGRATION 2.1 Payment Gateway - The system integrates with Stripe API v2022-11-15. - Credit cards are authorized and captured in a single transaction. - 3D Secure version 1.0 (legacy) is used for card validation. 2.2 Refunds & Cancellations - All refund requests must be initiated by the Customer Support dashboard. - The refund process takes 3 to 5 business days to credit back to the cardholder account. - Automated instant refunds are currently unsupported. 3. ARCHITECTURAL LIMITS & DATA retention 3.1 Transaction Logging - Every payment attempt generates an entry in the transaction log database. - Transaction logs are stored for a period of 90 days. After 90 days, logs are automatically purged to save database storage capacity. 3.2 Compliance Context - Under current PDPA regulations, customer details must be encrypted at rest in the MySQL DB using AES-256.