-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.html
95 lines (86 loc) · 3.69 KB
/
index.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
89
90
91
92
93
94
95
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://*.spreedly.com/; child-src https://*.spreedly.com/;" />
<title>Spreedly Sample iFrame Payment Page</title>
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script src="https://core.spreedly.com/iframe/iframe-v1.min.js"></script>
</head>
<body>
<form id="payment-form" accept-charset="UTF-8" class="spf-form" method="POST"
action="#">
<input type="hidden" name="payment_method_token" id="payment_method_token" value="" />
<fieldset class="spf-fs-name">
<h2>Name</h2>
<div class="spf-field spf-field-fname">
<label class="internal" for="spf-fname">First Name</label>
<input type="text" class="spf-input-text" id="first_name">
</div>
<div class="spf-field spf-field-lname">
<label class="internal" for="spf-lname">Last Name</label>
<input type="text" class="spf-input-text" id="last_name">
</div>
</fieldset>
<!-- If you want billing address, uncomment -->
<!--
<fieldset class="spf-fs-address">
<h2>Billing Address</h2>
<div class="spf-field spf-field-street">
<label class="internal" for="spf-street">Street Address</label>
<input type="text" class="spf-input-text" id="address1">
</div>
<div class="spf-field spf-field-street-2">
<input type="text" class="spf-input-text" id="address2">
</div>
<div class="spf-field spf-field-city">
<label class="internal" for="spf-city">City</label>
<input type="text" class="spf-input-text" id="city">
</div>
<div class="spf-field spf-field-state">
<label class="internal" for="spf-state">State</label>
<input type="text" class="spf-input-text" id="state">
</div>
<div class="spf-field spf-field-postcode">
<label class="internal" for="spf-postcode">Zip Code</label>
<input type="text" class="spf-input-text" id="zip">
</div>
<div class="spf-field spf-field-country">
<label class="internal" for="spf-country">Country</label>
<input type="text" class="spf-input-text" id="country">
</div>
</fieldset>
-->
<fieldset class="spf-fs-cc">
<h2>Payment Details</h2>
<div class="spf-field">
<label class="spf-field-group spf-number">Credit Card Number</label>
<label class="spf-field-group spf-verification_value">CVV</label>
<div id="spreedly-number-test" class="spf-field-group spf-number spf-field-cc">
</div>
<div id="spreedly-cvv-test" class="spf-field-group spf-verification_value spf-field-cc">
</div>
</div>
<div class="spf-field spf-field-exp">
<label>Expiration Date</label>
<div class="spf-field-group spf-month">
<input type="text" class="spf-input-text spf-exp" id="month" size="3" maxlength="2" placeholder="MM">
<!-- <label class="spf-label-secondary" for="spf-exp-m">Month (MM)</label> -->
</div>
<span class="spf-exp-divider">/</span>
<div class="spf-field-group spf-year">
<input type="text" class="spf-input-text spf-exp" id="year" size="5" maxlength="4" placeholder="YYYY">
<!-- <label class="spf-label-secondary" for="spf-exp-y">Year (YYYY)</label> -->
</div>
</div>
</fieldset>
<fieldset class="spf-field-submit">
<button id="submit-payment" type="button" class="button">Submit Payment</button>
<div id="message"></div>
<div id="errors"></div>
</fieldset>
</form>
<script src="assets/index.js"></script>
</body>
</html>