+
Secure Checkout
+
+ {/* Order Summary */}
+
+
Order Summary
+
+ {cart.map((item) => (
+
+
+ {item.name} × {item.quantity}
+
+
+ ${(parseFloat(item.price.replace("$", "")) * item.quantity).toFixed(2)}
+
+
+ ))}
+
+
+
+ Subtotal:
+ ${subtotal.toFixed(2)}
+
+
+ Tax (7%):
+ ${tax.toFixed(2)}
+
+
+ Total:
+ ${total.toFixed(2)}
+
+
+
+
+ {/* Payment Methods */}
+
+
+
+ Secure Payment
+
+
+ {/* Credit Card */}
+
setPaymentMethod("credit-card")}
+ >
+
+
+ Credit Card
+
+ {paymentMethod === "credit-card" && (
+
+ )}
+
+
+ {/* Apple Pay */}
+
setPaymentMethod("apple-pay")}
+ >
+
+ 🍎
+ Apple Pay
+
+
+
+ {/* PayPal */}
+
setPaymentMethod("paypal")}
+ >
+
+ PP
+ PayPal
+
+
+
+
+ {/* Action Buttons */}
+
+
+
+
+