adyen-admin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/.gitignore +5 -0
  2. data/.travis.yml +3 -0
  3. data/CHANGES.md +16 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE +26 -0
  6. data/README.md +57 -0
  7. data/Rakefile +24 -0
  8. data/VERSION +1 -0
  9. data/adyen-admin.gemspec +25 -0
  10. data/lib/adyen-admin/client.rb +26 -0
  11. data/lib/adyen-admin/skin.rb +180 -0
  12. data/lib/adyen-admin.rb +16 -0
  13. data/spec/adyen-admin/client_spec.rb +21 -0
  14. data/spec/adyen-admin/skin_spec.rb +177 -0
  15. data/spec/fixtures/cassettes/Adyen_Admin_Client/_login/passes_with_correct_username_password.yml +661 -0
  16. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_all/returns_the_skins.yml +269 -0
  17. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_download/gets_the_file.yml +275 -0
  18. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_test_url/returns_url_to_test.yml +941 -0
  19. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_upload/valid_set/increases_version.yml +7769 -0
  20. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_live_value.yml +77 -0
  21. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_test_value.yml +77 -0
  22. data/spec/fixtures/cassettes/Adyen_Admin_Skin/_version/returns_uploaded_value.yml +666 -0
  23. data/spec/fixtures/cassettes/login.yml +668 -0
  24. data/spec/fixtures/skins/DV3tf95f/css/screen.css +262 -0
  25. data/spec/fixtures/skins/DV3tf95f/inc/order_data.txt +1 -0
  26. data/spec/fixtures/skins/JH0815/css/screen.css +262 -0
  27. data/spec/fixtures/skins/JH0815/skin.html.erb +13 -0
  28. data/spec/fixtures/skins/base/css/print.css +7 -0
  29. data/spec/fixtures/skins/base/css/screen_ie6.css +1 -0
  30. data/spec/fixtures/skins/base/img/Airliner.airjamaica.a340.arp.750pix.jpg +0 -0
  31. data/spec/fixtures/skins/base/img/Eurofighter.jpg +0 -0
  32. data/spec/fixtures/skins/base/img/bg_gr.jpg +0 -0
  33. data/spec/fixtures/skins/base/img/blog_gr.jpg +0 -0
  34. data/spec/fixtures/skins/base/img/category.gif +0 -0
  35. data/spec/fixtures/skins/base/img/mig.jpg +0 -0
  36. data/spec/fixtures/skins/base/img/top1.jpg +0 -0
  37. data/spec/fixtures/skins/base/img/top2.jpg +0 -0
  38. data/spec/fixtures/skins/base/img/top3.jpg +0 -0
  39. data/spec/fixtures/skins/base/inc/cfooter.txt +15 -0
  40. data/spec/fixtures/skins/base/inc/cheader.txt +11 -0
  41. data/spec/fixtures/skins/base/inc/pmfooter.txt +1 -0
  42. data/spec/fixtures/skins/base/inc/pmheader.txt +4 -0
  43. data/spec/fixtures/skins/base/res/resources.properties +0 -0
  44. data/spec/fixtures/skins/example-7hFAQnmt/css/print.css +17 -0
  45. data/spec/fixtures/skins/example-7hFAQnmt/css/screen.css +704 -0
  46. data/spec/fixtures/skins/example-7hFAQnmt/css/screen_ie6.css +7 -0
  47. data/spec/fixtures/skins/example-7hFAQnmt/img/banner_top.png +0 -0
  48. data/spec/fixtures/skins/example-7hFAQnmt/img/bg.gif +0 -0
  49. data/spec/fixtures/skins/example-7hFAQnmt/img/bg_buttons.png +0 -0
  50. data/spec/fixtures/skins/example-7hFAQnmt/img/button_template.xcf +0 -0
  51. data/spec/fixtures/skins/example-7hFAQnmt/img/gradient.png +0 -0
  52. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.png +0 -0
  53. data/spec/fixtures/skins/example-7hFAQnmt/img/logo.xcf +0 -0
  54. data/spec/fixtures/skins/example-7hFAQnmt/inc/cfooter.txt +1 -0
  55. data/spec/fixtures/skins/example-7hFAQnmt/inc/cheader.txt +2 -0
  56. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmfooter.txt +1 -0
  57. data/spec/fixtures/skins/example-7hFAQnmt/inc/pmheader.txt +2 -0
  58. data/spec/fixtures/skins/example-7hFAQnmt/metadata.yml +5 -0
  59. data/spec/spec_helper.rb +21 -0
  60. metadata +228 -0
@@ -0,0 +1,262 @@
1
+ html, body {
2
+ height: 100%;
3
+ margin: 0;
4
+ padding: 0;
5
+ font: 15px/19px verdana, serif;
6
+ color: #FFF;
7
+ background: #6A96BB url(../img/bg_gr.jpg) repeat-x top;
8
+ }
9
+
10
+ #content2 h1, #content2 h2, #content2 h3, #content2 h4, #content2 h5 {
11
+ /* Headers inside the actual content2sbox */
12
+ margin: 1em 17px 0.5em 10px;
13
+ text-align: right;
14
+ font-size: 1.4em;
15
+ }
16
+
17
+ h1, h2, h3, h4 {font-family: "georgia", serif; font-weight: bold;}
18
+
19
+ h3 { font-size: 1.2em;}
20
+ h3 a, h3 a:visited { text-decoration: none; color: #fff;}
21
+ h3 a:active { color: #f00;}
22
+ h3 a:hover { color: #fff000;}
23
+
24
+ #center {
25
+ /* Makes the page in center of the viewport */
26
+ position: relative;
27
+ width: 792px;
28
+ height: 100%;
29
+ margin: 0 auto;
30
+ background: transparent url(../img/blog_gr.jpg) repeat-y top right;
31
+ }
32
+
33
+ #pageform{
34
+ height: 20px;
35
+
36
+ }
37
+
38
+ #archives {
39
+ position: relative;
40
+ left: -20px;
41
+ padding: 0;
42
+ top: 228px;
43
+ width: 271px;
44
+ }
45
+
46
+ #archives h3 {
47
+ /* the clouds graphic is a background of every h3 inside #achives */
48
+ background: transparent url(../img/category.gif) no-repeat top right;
49
+ padding: 0 15px;
50
+ margin: 0;
51
+ vertical-align: middle;
52
+ line-height: 30px;
53
+ height: 38px;
54
+ text-align: right;
55
+
56
+ }
57
+
58
+ /* the archives list is a real list, but I don't dots or numbers, and that I change with the following: */
59
+
60
+ #archives ul {
61
+ margin: 0 22px 0 0;
62
+ padding: 0 0 10px 0;
63
+ }
64
+
65
+ #archives ul li {
66
+ list-style-type: none;
67
+ text-align: right;
68
+ margin: 5px 0;
69
+ }
70
+
71
+ #archives ul li a {
72
+ text-decoration: none;
73
+ color: #2F3B55;
74
+ font-family: "georgia", "palatino linotype", "times new roman", serif;
75
+ }
76
+
77
+ #archives ul li a:hover {color: #fff; text-decoration: underline;}
78
+
79
+
80
+ #content2 {
81
+ /* the actual content2 of the page */
82
+ position: absolute;
83
+ top: 198px;
84
+ width: 502px;
85
+ right: 0;
86
+ padding-right: 10px;
87
+ padding-left: 28px;
88
+ background: transparent url(../img/blog_gr.jpg) repeat-y top right;
89
+ }
90
+
91
+
92
+ #foot {
93
+ /* height: 60px;
94
+ background-color: white;
95
+ */
96
+ }
97
+
98
+ #content2 p {
99
+ margin: 15px 17px 15px 0px;
100
+ text-align: justify;
101
+ }
102
+
103
+ #content2 h2 {
104
+ color: #C8E5FF;
105
+ border-top: 1px dotted;
106
+ padding-top: 12px;
107
+ margin-left: 0px;
108
+ }
109
+
110
+
111
+ #home {
112
+ /* the box in the upper-left corner */
113
+ position: absolute;
114
+ top: 15px;
115
+ left: 80px;
116
+ width: 200px;
117
+ text-align: center;
118
+ z-index: 1;
119
+ }
120
+
121
+ #home * {
122
+ margin: 0;
123
+ padding: 3px 0;
124
+ }
125
+
126
+ #top1, #top2, #top3 {
127
+ display: block;
128
+ position: absolute;
129
+ top: 0;
130
+ background-repeat: no-repeat;
131
+ background-color: transparent;
132
+ }
133
+
134
+ /* the top-graphic is made with these three elements: */
135
+
136
+ #top1 {
137
+ right: 503px;
138
+ width: 55px;
139
+ height: 223px;
140
+ background-image: url(../img/top1.jpg);
141
+ }
142
+
143
+ #top2 {
144
+ right: 5px;
145
+ width: 498px;
146
+ height: 223px;
147
+ background-image: url(../img/top2.jpg);
148
+ }
149
+
150
+ #top3 {
151
+ right: -25px;
152
+ width: 30px;
153
+ height: 231px;
154
+ background-image: url(../img/top3.jpg);
155
+ }
156
+
157
+ pre {font-family: courier, monospace; font-size: 1em; color: black; }
158
+ table.basetable { margin-left: 5px;}
159
+ table.basetable td { padding-bottom: 0.6em; padding-right: 0.6em;}
160
+ table.od { margin: 10px 0px 10px 40px;}
161
+ table.od td { padding: 5px; border: 1px solid #999;}
162
+ table.od th { padding: 5px; font-weight: bold; border: 1px solid #999;}
163
+ .r { text-align: right; }
164
+ .l { text-align: left; }
165
+ .fr { float: right; }
166
+ .fl { float: left; }
167
+ .b {font-size:1em; font-weight:bold;}
168
+
169
+ .imgB {
170
+ width: 138px;
171
+ height: 32px;
172
+ padding: 0;
173
+ border: 0;
174
+ background: transparent url(../img/bg_buttons.png) no-repeat left 0px;
175
+ overflow: hidden;
176
+ color: white;
177
+ cursor: pointer; /* hand-shaped cursor */
178
+ cursor: hand; /* for IE 5.x */
179
+ font-weight: bold;
180
+ font-size: 1.2em;
181
+ }
182
+ form>.imgB { /* For non-IE browsers*/
183
+ height: 0px;
184
+ }
185
+
186
+ #footerb1div {
187
+ float: right;
188
+ }
189
+ #footerb2div {
190
+ float: right;
191
+ }
192
+
193
+ .pmB {
194
+ width: 238px;
195
+ height: 42px;
196
+ padding-left: 85px;
197
+ text-align: left;
198
+ margin-bottom: 6px;
199
+ font-size: 1.1em;
200
+ }
201
+
202
+ .footerB {
203
+ border: 2px outset black;
204
+ background-color: #ccc;
205
+ margin: 6px 10px 0 0;
206
+ }
207
+ .footerB:active {
208
+ border: 2px inset black;
209
+ }
210
+
211
+ #nextstep {display: none;}
212
+
213
+ .red {color:#c00;}
214
+ .popupMsg { display: none; border: 1px solid #666; color: black; background-color: #eee; margin-bottom:5px; padding: 6px;}
215
+
216
+ input, select
217
+ {
218
+ font-size: 0.95em;
219
+ padding: 1px;
220
+ border: 1px solid #C3C3C3;
221
+ border-top-color: #7C7C7C;
222
+ border-bottom-color: #DDD;
223
+ background: white url(../img/input_bg.png) 0 0 repeat-x;
224
+ }
225
+
226
+ input[type=text]:focus, input[type=password]:focus, select:focus {
227
+ background-color: #E7F1F8 !important;
228
+ }
229
+
230
+ select {
231
+ font-weight: bold;
232
+ }
233
+
234
+
235
+ select {
236
+ font-size: 0.9em;
237
+ }
238
+
239
+ table.basetable .inputField {
240
+ padding: 1px 2px 2px 2px;
241
+ background-color: white;
242
+ }
243
+
244
+
245
+ table.basetable .errorField {
246
+ border: 2px solid #f33;
247
+ background-color: #fff3f3;
248
+ padding: 1px 1px 1px 1px;
249
+ }
250
+
251
+ .fieldDiv {
252
+ padding-right: 20px;
253
+ background: transparent;
254
+ }
255
+ .errorDiv {
256
+ background: transparent url(/hpp/img/icons/error.png) no-repeat right 3px;
257
+ padding-right: 20px;
258
+ }
259
+ .errorFrame {
260
+ background-color: #fff3f3;
261
+ }
262
+
@@ -0,0 +1 @@
1
+ My Custom Order Data
@@ -0,0 +1,262 @@
1
+ html, body {
2
+ height: 100%;
3
+ margin: 0;
4
+ padding: 0;
5
+ font: 15px/19px verdana, serif;
6
+ color: #FFF;
7
+ background: #6A96BB url(../img/bg_gr.jpg) repeat-x top;
8
+ }
9
+
10
+ #content2 h1, #content2 h2, #content2 h3, #content2 h4, #content2 h5 {
11
+ /* Headers inside the actual content2sbox */
12
+ margin: 1em 17px 0.5em 10px;
13
+ text-align: right;
14
+ font-size: 1.4em;
15
+ }
16
+
17
+ h1, h2, h3, h4 {font-family: "georgia", serif; font-weight: bold;}
18
+
19
+ h3 { font-size: 1.2em;}
20
+ h3 a, h3 a:visited { text-decoration: none; color: #fff;}
21
+ h3 a:active { color: #f00;}
22
+ h3 a:hover { color: #fff000;}
23
+
24
+ #center {
25
+ /* Makes the page in center of the viewport */
26
+ position: relative;
27
+ width: 792px;
28
+ height: 100%;
29
+ margin: 0 auto;
30
+ background: transparent url(../img/blog_gr.jpg) repeat-y top right;
31
+ }
32
+
33
+ #pageform{
34
+ height: 20px;
35
+
36
+ }
37
+
38
+ #archives {
39
+ position: relative;
40
+ left: -20px;
41
+ padding: 0;
42
+ top: 228px;
43
+ width: 271px;
44
+ }
45
+
46
+ #archives h3 {
47
+ /* the clouds graphic is a background of every h3 inside #achives */
48
+ background: transparent url(../img/category.gif) no-repeat top right;
49
+ padding: 0 15px;
50
+ margin: 0;
51
+ vertical-align: middle;
52
+ line-height: 30px;
53
+ height: 38px;
54
+ text-align: right;
55
+
56
+ }
57
+
58
+ /* the archives list is a real list, but I don't dots or numbers, and that I change with the following: */
59
+
60
+ #archives ul {
61
+ margin: 0 22px 0 0;
62
+ padding: 0 0 10px 0;
63
+ }
64
+
65
+ #archives ul li {
66
+ list-style-type: none;
67
+ text-align: right;
68
+ margin: 5px 0;
69
+ }
70
+
71
+ #archives ul li a {
72
+ text-decoration: none;
73
+ color: #2F3B55;
74
+ font-family: "georgia", "palatino linotype", "times new roman", serif;
75
+ }
76
+
77
+ #archives ul li a:hover {color: #fff; text-decoration: underline;}
78
+
79
+
80
+ #content2 {
81
+ /* the actual content2 of the page */
82
+ position: absolute;
83
+ top: 198px;
84
+ width: 502px;
85
+ right: 0;
86
+ padding-right: 10px;
87
+ padding-left: 28px;
88
+ background: transparent url(../img/blog_gr.jpg) repeat-y top right;
89
+ }
90
+
91
+
92
+ #foot {
93
+ /* height: 60px;
94
+ background-color: white;
95
+ */
96
+ }
97
+
98
+ #content2 p {
99
+ margin: 15px 17px 15px 0px;
100
+ text-align: justify;
101
+ }
102
+
103
+ #content2 h2 {
104
+ color: #C8E5FF;
105
+ border-top: 1px dotted;
106
+ padding-top: 12px;
107
+ margin-left: 0px;
108
+ }
109
+
110
+
111
+ #home {
112
+ /* the box in the upper-left corner */
113
+ position: absolute;
114
+ top: 15px;
115
+ left: 80px;
116
+ width: 200px;
117
+ text-align: center;
118
+ z-index: 1;
119
+ }
120
+
121
+ #home * {
122
+ margin: 0;
123
+ padding: 3px 0;
124
+ }
125
+
126
+ #top1, #top2, #top3 {
127
+ display: block;
128
+ position: absolute;
129
+ top: 0;
130
+ background-repeat: no-repeat;
131
+ background-color: transparent;
132
+ }
133
+
134
+ /* the top-graphic is made with these three elements: */
135
+
136
+ #top1 {
137
+ right: 503px;
138
+ width: 55px;
139
+ height: 223px;
140
+ background-image: url(../img/top1.jpg);
141
+ }
142
+
143
+ #top2 {
144
+ right: 5px;
145
+ width: 498px;
146
+ height: 223px;
147
+ background-image: url(../img/top2.jpg);
148
+ }
149
+
150
+ #top3 {
151
+ right: -25px;
152
+ width: 30px;
153
+ height: 231px;
154
+ background-image: url(../img/top3.jpg);
155
+ }
156
+
157
+ pre {font-family: courier, monospace; font-size: 1em; color: black; }
158
+ table.basetable { margin-left: 5px;}
159
+ table.basetable td { padding-bottom: 0.6em; padding-right: 0.6em;}
160
+ table.od { margin: 10px 0px 10px 40px;}
161
+ table.od td { padding: 5px; border: 1px solid #999;}
162
+ table.od th { padding: 5px; font-weight: bold; border: 1px solid #999;}
163
+ .r { text-align: right; }
164
+ .l { text-align: left; }
165
+ .fr { float: right; }
166
+ .fl { float: left; }
167
+ .b {font-size:1em; font-weight:bold;}
168
+
169
+ .imgB {
170
+ width: 138px;
171
+ height: 32px;
172
+ padding: 0;
173
+ border: 0;
174
+ background: transparent url(../img/bg_buttons.png) no-repeat left 0px;
175
+ overflow: hidden;
176
+ color: white;
177
+ cursor: pointer; /* hand-shaped cursor */
178
+ cursor: hand; /* for IE 5.x */
179
+ font-weight: bold;
180
+ font-size: 1.2em;
181
+ }
182
+ form>.imgB { /* For non-IE browsers*/
183
+ height: 0px;
184
+ }
185
+
186
+ #footerb1div {
187
+ float: right;
188
+ }
189
+ #footerb2div {
190
+ float: right;
191
+ }
192
+
193
+ .pmB {
194
+ width: 238px;
195
+ height: 42px;
196
+ padding-left: 85px;
197
+ text-align: left;
198
+ margin-bottom: 6px;
199
+ font-size: 1.1em;
200
+ }
201
+
202
+ .footerB {
203
+ border: 2px outset black;
204
+ background-color: #ccc;
205
+ margin: 6px 10px 0 0;
206
+ }
207
+ .footerB:active {
208
+ border: 2px inset black;
209
+ }
210
+
211
+ #nextstep {display: none;}
212
+
213
+ .red {color:#c00;}
214
+ .popupMsg { display: none; border: 1px solid #666; color: black; background-color: #eee; margin-bottom:5px; padding: 6px;}
215
+
216
+ input, select
217
+ {
218
+ font-size: 0.95em;
219
+ padding: 1px;
220
+ border: 1px solid #C3C3C3;
221
+ border-top-color: #7C7C7C;
222
+ border-bottom-color: #DDD;
223
+ background: white url(../img/input_bg.png) 0 0 repeat-x;
224
+ }
225
+
226
+ input[type=text]:focus, input[type=password]:focus, select:focus {
227
+ background-color: #E7F1F8 !important;
228
+ }
229
+
230
+ select {
231
+ font-weight: bold;
232
+ }
233
+
234
+
235
+ select {
236
+ font-size: 0.9em;
237
+ }
238
+
239
+ table.basetable .inputField {
240
+ padding: 1px 2px 2px 2px;
241
+ background-color: white;
242
+ }
243
+
244
+
245
+ table.basetable .errorField {
246
+ border: 2px solid #f33;
247
+ background-color: #fff3f3;
248
+ padding: 1px 1px 1px 1px;
249
+ }
250
+
251
+ .fieldDiv {
252
+ padding-right: 20px;
253
+ background: transparent;
254
+ }
255
+ .errorDiv {
256
+ background: transparent url(/hpp/img/icons/error.png) no-repeat right 3px;
257
+ padding-right: 20px;
258
+ }
259
+ .errorFrame {
260
+ background-color: #fff3f3;
261
+ }
262
+
@@ -0,0 +1,13 @@
1
+ <!-- ### inc/cheader_[locale].txt or inc/cheader.txt (fallback) ### -->
2
+
3
+ <% adyen_form_tag do %>
4
+ <!-- ### inc/pmheader_[locale].txt or inc/pmheader.txt (fallback) ### -->
5
+
6
+ <%= adyen_payment_fields %>
7
+
8
+ <!-- ### inc/pmfooter_[locale].txt or inc/pmfooter.txt (fallback) ### -->
9
+
10
+ <!-- ### inc/customfields_[locale].txt or inc/customfields.txt (fallback) ### -->
11
+ <% end %>
12
+
13
+ <!-- ### inc/cfooter_[locale].txt or inc/cfooter.txt (fallback) ### -->
@@ -0,0 +1,7 @@
1
+ html {background:#fff; font-size:10pt; font-family: arial, sans-serif;}
2
+ #content {position:relative; z-index:3; word-wrap:break-word;}
3
+ #head {display:none;}
4
+ #printhead {height:100px; background:#fff; font-size:24pt; color:#000; border-bottom:1px solid #000;}
5
+ #printfoot {height:50px; background:#fff; color:#000; text-align:right; font-size:12pt; border-top:1px solid #000; margin-top:20px;}
6
+ #foot {display:none;}
7
+
@@ -0,0 +1 @@
1
+ #topbar1 { background-position: left top }
@@ -0,0 +1,15 @@
1
+ </div>
2
+ <div id="archives">&nbsp;
3
+ <h3>Home</h3>
4
+ <h3>Book online</h3>
5
+ <h3>Flight Info</h3>
6
+ <h3>Service</h3>
7
+ <h3>Offers</h3>
8
+ <h3>Hotel</h3>
9
+ <h3>Car Rental</h3>
10
+
11
+ </div>
12
+ <div id="top1"></div>
13
+ <div id="top2"></div>
14
+ <div id="top3"></div>
15
+ </div>
@@ -0,0 +1,11 @@
1
+ <div id="center">
2
+ <div id="home"> <!-- the box in the upper-left corner -->
3
+
4
+ <h1>paxjet</h1>
5
+
6
+ <h4>low cost, sky high</h4>
7
+ <p><img src="/sf/DV3tf95f/img/Airliner.airjamaica.a340.arp.750pix.jpg" alt="" height='100' width='120'/></p>
8
+ <p></p>
9
+
10
+ </div>
11
+ <div id="content2">
File without changes
@@ -0,0 +1,17 @@
1
+ html {
2
+ background: #fff;
3
+ color: #000;
4
+ font-size: 11pt;
5
+ font-family: arial, sans-serif;
6
+ }
7
+
8
+ .imgB {
9
+ background: #ccc !important;
10
+ }
11
+ .receiptNoPrint {
12
+ display: none;
13
+ }
14
+
15
+ .receiptPrint {
16
+ display: block;
17
+ }