+ {currentStep === 'cart' && ( +
+

Review Your Order

+ + {items.length === 0 ? ( +
+ +

Your cart is empty

+
+ ) : ( +
+ {items.map(item => ( + +
+
+

{item.eventTitle}

+

{item.ticketTypeName}

+
+ Qty: {item.quantity} + + ${(item.priceInCents / 100).toFixed(2)} each + +
+
+
+

+ ${((item.priceInCents * item.quantity) / 100).toFixed(2)} +

+
+
+
+ ))} + + {/* Order Summary */} + +
+
+ Subtotal + ${totals.subtotal.toFixed(2)} +
+
+ Platform Fee + ${totals.platformFee.toFixed(2)} +
+
+
+ Total + ${totals.total.toFixed(2)} +
+
+
+
+
+ )} +
+ )} + + {currentStep === 'customer' && ( +
+

Customer Information

+ +
+
+ + handleCustomerInfoChange('firstName', e.target.value)} + error={errors.firstName} + placeholder="John" + /> +
+ +
+ + handleCustomerInfoChange('lastName', e.target.value)} + error={errors.lastName} + placeholder="Doe" + /> +
+
+ +
+ + handleCustomerInfoChange('email', e.target.value)} + error={errors.email} + placeholder="john.doe@example.com" + /> +
+ +
+ + handleCustomerInfoChange('phone', e.target.value)} + error={errors.phone} + placeholder="+1 (555) 123-4567" + /> +
+
+ )} + + {currentStep === 'payment' && ( +
+

Payment Method

+ + +
+ )} + + {currentStep === 'confirmation' && ( +
+

Confirm Your Order

+ +
+ {/* Customer Summary */} + +

Customer Details

+
+

{customerInfo.firstName} {customerInfo.lastName}

+

{customerInfo.email}

+

{customerInfo.phone}

+
+
+ + {/* Payment Summary */} + +

Payment Method

+
+ + + {selectedPayment === 'card' ? 'Credit/Debit Card' : + selectedPayment === 'paypal' ? 'PayPal' : + selectedPayment === 'apple_pay' ? 'Apple Pay' : + selectedPayment === 'google_pay' ? 'Google Pay' : + 'Selected Payment Method'} + +
+
+ + {/* Final Total */} + +
+ Total Amount + + ${totals.total.toFixed(2)} + +
+
+
+ + {checkoutMutation.error && ( + + +
+

Payment Error

+

{checkoutMutation.error.message}

+
+
+ )} +
+ )} + + {currentStep === 'error' && checkoutError && ( + + )} +