bamboozled_panda 0.0.3.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/tokenizer.html +86 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6ab853ca56777ca5e729553123a88cd5dd79229c
|
|
4
|
+
data.tar.gz: 0fc63c402166f8950d556fb4e08e66c26b9cb371
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4aa28a596ac083d186c15499ffdcf7da858239a48497394d62cc8b0f484ccf95890cb3ba03c7581b4ae4e987ba1cc6d26c32c78c334b7c3e60c734f171ed8b89
|
|
7
|
+
data.tar.gz: 017295c808d60022a4e889c3bef4a498073d987a0785a0b87376e1e99c3807dcfc9dec10b412dc2141d8c530c700f3b1fb990dc56c16164fffb0fbc4cfe51c69
|
data/tokenizer.html
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>Panda Pay Card Tokenizer</title>
|
|
8
|
+
<meta name="description" content="Panda Pay Card Tokenizer">
|
|
9
|
+
<meta name="author" content="PandaPay and Kaiser">
|
|
10
|
+
</head>
|
|
11
|
+
|
|
12
|
+
<!-- modified from panda pay's dashboard -->
|
|
13
|
+
<!-- Include PandaJS -->
|
|
14
|
+
<script src="https://d2t45z63lq9zlh.cloudfront.net/panda-v0.0.5.min.js"></script>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<form id="panda_public">
|
|
18
|
+
<div>
|
|
19
|
+
<label>Don't forget to open console and turn on logging!</label>
|
|
20
|
+
</div>
|
|
21
|
+
<br>
|
|
22
|
+
<div>
|
|
23
|
+
<label>Publishable Key</label>
|
|
24
|
+
<input type="text" name="public_key">
|
|
25
|
+
</div>
|
|
26
|
+
<div>
|
|
27
|
+
<button onclick="return setup()">Step 1</button>
|
|
28
|
+
</div>
|
|
29
|
+
</form>
|
|
30
|
+
|
|
31
|
+
<form id="panda_cc_form">
|
|
32
|
+
<div>
|
|
33
|
+
<label>First Name</label>
|
|
34
|
+
<input type="text" data-panda="first_name">
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
<div>
|
|
38
|
+
<label>Last Name</label>
|
|
39
|
+
<input type="text" data-panda="last_name">
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div>
|
|
43
|
+
<label>Credit Card Number</label>
|
|
44
|
+
<input type="text" data-panda="credit_card">
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<div>
|
|
48
|
+
<label>Expiration</label>
|
|
49
|
+
<input type="text" data-panda="expiration">
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<div>
|
|
53
|
+
<label>CVV</label>
|
|
54
|
+
<input type="text" data-panda="cvv">
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div id="tokenize">
|
|
58
|
+
<button type="submit">Step 2!</button>
|
|
59
|
+
</div>
|
|
60
|
+
</form>
|
|
61
|
+
|
|
62
|
+
<script>
|
|
63
|
+
// Call Panda.init() with your Panda Publishable Key and the DOM id of the
|
|
64
|
+
// credit card-related form element
|
|
65
|
+
|
|
66
|
+
function setup(){
|
|
67
|
+
Panda.init(document.forms['panda_public'].elements['public_key'].value, 'panda_cc_form');
|
|
68
|
+
|
|
69
|
+
Panda.on('success', function(cardToken) {
|
|
70
|
+
// You now have a token you can use to refer to that credit card later.
|
|
71
|
+
// This token is used in PandaPay API calls for creating donations and grants
|
|
72
|
+
// so that you don't have to worry about security concerns with dealing with
|
|
73
|
+
// credit card data.
|
|
74
|
+
console.log(cardToken);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
Panda.on('error', function(errors) {
|
|
78
|
+
// errors is a human-readable list of things that went wrong
|
|
79
|
+
// (invalid card number, missing last name, etc.)
|
|
80
|
+
console.log(errors);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
</script>
|
|
86
|
+
</html>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bamboozled_panda
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kaiser Pister
|
|
@@ -17,6 +17,7 @@ extensions: []
|
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/bamboozled_panda.rb
|
|
20
|
+
- tokenizer.html
|
|
20
21
|
homepage: https://github.com/kpister/bamboozled_panda
|
|
21
22
|
licenses:
|
|
22
23
|
- MIT
|