Spaces:
Sleeping
Sleeping
File size: 2,762 Bytes
7845020 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | <!-- βββββββββββββββββββββββββββββββββββββββ
PAGE 5: PAYMENT
βββββββββββββββββββββββββββββββββββββββ -->
<div id="page-payment" class="page">
<div class="payment-header">
<button onclick="nav('cart')" style="color:rgba(255,255,255,0.7);font-size:14px;margin-bottom:8px;">β Back to Cart</button>
<h1>Select payment method</h1>
</div>
<div class="payment-body">
<!-- LEFT: PAYMENT OPTIONS -->
<div>
<div class="order-id-bar">Order ID : <span id="payment-order-id">#1204D1</span></div>
<div class="pay-method-list">
<div class="pay-opt selected" id="pay-upi" onclick="selectPay('upi')">
<span class="opt-icon">π±</span> UPI Payment
</div>
<div class="upi-sub" id="upi-sub">
<button class="btn-upi-app" onclick="payWithApp()">
<span style="font-size:20px;">π±</span> Pay via any UPI App
</button>
<div style="display:flex;align-items:center;margin:16px 0;gap:12px;">
<div style="flex:1;height:1px;background:#eee;"></div>
<div style="font-size:12px;color:#999;font-weight:700;">OR SCAN QR</div>
<div style="flex:1;height:1px;background:#eee;"></div>
</div>
<div class="qr-box" style="margin-top:0;padding:16px;">
<div class="qr-code" style="margin-bottom:8px;">
<img id="upi-qr" width="100">
</div>
<p style="margin-bottom:0;">Scan with GPay, PhonePe, Paytm etc.</p>
</div>
<div style="margin-top:16px;" class="manual-upi-group">
<p style="font-size:12px;font-weight:700;color:#666;margin-bottom:8px;">Manual UPI ID Entry</p>
<input class="upi-input" type="text" placeholder="yourname@upi or @phonepe" id="upi-id-input">
<button id="btn-manual-pay" class="btn-pay-manual" disabled onclick="payWithManualUPI()">
Confirm & Pay Now
</button>
</div>
</div>
<div class="pay-opt" id="pay-cash" onclick="selectPay('cash')">
<span class="opt-icon">π΅</span> Cash Payment
</div>
</div>
</div>
<!-- RIGHT: ORDER SUMMARY -->
<div>
<div class="order-summary-card">
<div class="os-title">Order Summary</div>
<div id="payment-items-list"></div>
<div class="os-total-row">
<span>Total</span>
<span id="payment-total">βΉ0</span>
</div>
<button class="btn-place-order" onclick="placeOrder()">β‘ Confirm & Pay</button>
</div>
</div>
</div>
</div> |