forked from venturecommunism/meteor-crowdfunder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stripe.html
89 lines (78 loc) · 2.67 KB
/
stripe.html
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<head>
<title>stripe</title>
</head>
<body>
{{> bulletin}}
{{> paymentform}}
</body>
<template name="paymentform">
<h1>Meteor / Stripe Crowdfunder</h1>
<div id="stripe-form">
<h2>Shipping Address</h2>
<div class="form-row">
<div class="cc-text">Name</div>
<input type="text" size="40" autocomplete="off" class="buyer-name"/>
</div>
<div class="form-row">
<div class="cc-text">Address 1</div>
<input type="text" size="40" autocomplete="off" class="address-1"/>
</div>
<div class="form-row">
<div class="cc-text">Address 2</div>
<input type="text" size="40" autocomplete="off" class="address-2"/>
</div>
<div class="form-row">
<div class="cc-text">City</div>
<input type="text" size="40" autocomplete="off" class="city"/>
</div>
<div class="form-row">
<div class="cc-text">State</div>
<input type="text" size="2" autocomplete="off" class="state"/>
</div>
<div class="form-row">
<div class="cc-text">Zip Code</div>
<input type="text" size="10" autocomplete="off" class="zip"/>
</div>
<h2>Card info</h2>
<div class="form-row">
<div class="cc-text">Card Number</div>
<input type="text" size="30" autocomplete="off" class="card-number"/>
</div>
<div class="form-row">
<div class="cc-text">CVC</div>
<input type="text" size="4" autocomplete="off" class="card-cvc"/>
</div>
<div class="form-row">
</div>
<div class="form-row">
<div class="cc-text">Expiration (MM/YYYY)</div>
<input type="text" size="2" class="card-expiry-month"/>
<span> / </span>
<input type="text" size="4" class="card-expiry-year"/>
</div>
<input type="hidden" name="amount" value="2000" id="cc-amount">
<button type="submit" class="submit-button">Submit Payment</button>
</div>
<div id="error" class="hidden"></div>
<div id="success" class="hidden">Thanks for signing up at the open source crowdfunder!</div>
</template>
<template name="bulletin">
<p>Reserve a fully assembled <a href="http://www.shapeoko.com/wiki/index.php/Main_Page" target="_blank">open source hardware CNC m$
<p>$600</p>
{{#each entries}}
{{> entry}}
{{/each}}
<p>Raised ${{total}} of $30000</p>
</template>
<template name="entry">
<div class="entry" style="border: 1px solid black">
<span class="entry-price">$600</span>
<span class="entry-name">{{name}}</span>
<span class="entry-address-1">{{address_1}}</span>
<span class="entry-address-2">{{address_2}}</span>
<span class="entry-city">{{city}}</span>
<span class="entry-state">{{state}}</span>
<span class="entry-zip">{{zip}}</span>
<span class="entry-id">{{_id}}</span>
</div>
</template>