samihalawa commited on
Commit
b009ca1
·
verified ·
1 Parent(s): 76d616c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +41 -17
index.html CHANGED
@@ -1,19 +1,43 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <title>MANUS AI - Save New Card</title>
5
+ <style>
6
+ body{font-family:-apple-system,sans-serif;max-width:400px;margin:40px auto;padding:20px;background:#f5f5f5}
7
+ .card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
8
+ h2{margin:0 0 16px;color:#1a1a1a}
9
+ .info{background:#e7f3ff;color:#0c5460;padding:10px;border-radius:6px;font-size:12px;margin-bottom:16px}
10
+ #sumup-card{min-height:260px}
11
+ .result{margin-top:12px;padding:14px;border-radius:8px;font-size:13px}
12
+ .success{background:#d4edda;color:#155724}
13
+ .error{background:#f8d7da;color:#721c24}
14
+ .tok{font-family:monospace;font-size:11px;background:#f0f0f0;padding:6px;border-radius:4px;margin-top:6px;word-break:break-all}
15
+ .cust{font-family:monospace;font-size:10px;color:#666;margin-top:10px}
16
+ </style>
17
+ </head>
18
+ <body>
19
+ <div class="card">
20
+ <h2>💳 MANUS AI - Save Card</h2>
21
+ <div class="info">✓ One-time 3DS verification<br>✓ Future charges = NO approval needed</div>
22
+ <div id="sumup-card"></div>
23
+ <div id="result"></div>
24
+ <div class="cust">Customer ID: CUST-1767636986</div>
25
+ </div>
26
+ <script src="https://gateway.sumup.com/gateway/ecom/card/v2/sdk.js"></script>
27
+ <script>
28
+ SumUpCard.mount({
29
+ id:"sumup-card",
30
+ checkoutId:"6d975d0e-0f36-4664-94c5-142d687a310c",
31
+ onResponse:function(t,b){
32
+ console.log(t,b);
33
+ var r=document.getElementById('result');
34
+ if(b.payment_instrument&&b.payment_instrument.token){
35
+ r.innerHTML='<div class="result success"><b>✅ Card Saved!</b><div class="tok">TOKEN: '+b.payment_instrument.token+'</div><div style="margin-top:8px;font-size:11px">Customer: CUST-1767636986</div></div>';
36
+ }else if(t==='error'){
37
+ r.innerHTML='<div class="result error">❌ '+(b.message||JSON.stringify(b))+'</div>';
38
+ }
39
+ }
40
+ });
41
+ </script>
42
+ </body>
43
  </html>