adyen-admin 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. data/CHANGES.md +3 -1
  2. data/README.md +8 -0
  3. data/VERSION +1 -1
  4. data/lib/adyen-admin/skin.rb +78 -28
  5. data/spec/adyen-admin/skin_spec.rb +121 -30
  6. data/spec/fixtures/cassettes/Adyen_Admin_Client/_get/raises_authenticated_error_when_not_logged_in.yml +9 -9
  7. data/spec/fixtures/cassettes/Adyen_Admin_Client/_login/passes_with_correct_username_password.yml +35 -47
  8. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all/freezes_local_skins.yml +4 -4
  9. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all/returns_the_skins.yml +4 -4
  10. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all_remote/returns_the_skins.yml +4 -4
  11. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_all_remote/sets_local_path.yml +4 -4
  12. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_decompile/new_remote_skin/downloads_and_decompiles_skin.yml +133 -58
  13. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_download/gets_the_file.yml +65 -65
  14. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_download/is_a_zipfile.yml +65 -65
  15. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_find/returns_no_skin.yml +4 -4
  16. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_find/returns_the_skin.yml +4 -4
  17. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/{_version → _remote_version}/returns_live_value.yml +5 -5
  18. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/{_version → _remote_version}/returns_test_value.yml +6 -6
  19. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/{_version → _remote_version}/returns_uploaded_value.yml +7 -7
  20. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_test_url/returns_url_to_test.yml +17 -17
  21. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_update/create_skin_yml_file.yml +814 -0
  22. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_upload/valid_set/increases_version.yml +907 -106
  23. data/spec/fixtures/cassettes/Adyen_Admin_Skin/authenticated/_upload/valid_set/updates_skin_data.yml +6466 -0
  24. data/spec/fixtures/cassettes/login.yml +36 -48
  25. data/spec/fixtures/skins/DV3tf95f/skin.yml +6 -0
  26. metadata +28 -26
  27. data/spec/fixtures/skins/DV3tf95f/metadata.yml +0 -5
  28. data/spec/fixtures/skins/example-7hFAQnmt/metadata.yml +0 -5
@@ -0,0 +1,814 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://ca-test.adyen.com/ca/ca/skin/testpayment.shtml?skinCode=7hFAQnmt
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
14
+ Accept-Encoding:
15
+ - gzip,deflate,identity
16
+ Accept-Charset:
17
+ - ISO-8859-1,utf-8;q=0.7,*;q=0.7
18
+ Accept-Language:
19
+ - en-us,en;q=0.5
20
+ Cookie:
21
+ - JSESSIONID=F2EEF8221C8C8DCFAC103BF99231FA3E.test5e
22
+ Host:
23
+ - ca-test.adyen.com
24
+ Connection:
25
+ - keep-alive
26
+ Keep-Alive:
27
+ - 300
28
+ response:
29
+ status:
30
+ code: 200
31
+ message: OK
32
+ headers:
33
+ Date:
34
+ - Thu, 19 Apr 2012 17:42:05 GMT
35
+ Server:
36
+ - Apache
37
+ Cache-Control:
38
+ - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
39
+ Pragma:
40
+ - no-cache
41
+ Expires:
42
+ - "-1"
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ Content-Language:
46
+ - en-GB
47
+ Keep-Alive:
48
+ - timeout=15, max=100
49
+ Connection:
50
+ - Keep-Alive
51
+ Transfer-Encoding:
52
+ - chunked
53
+ Content-Type:
54
+ - text/html;charset=UTF-8
55
+ body:
56
+ encoding: US-ASCII
57
+ string: |
58
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
59
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
60
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
61
+ <head>
62
+
63
+ <title>Adyen PSP System</title>
64
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
65
+ <meta http-equiv="content-style-type" content="text/css" />
66
+ <meta http-equiv="imagetoolbar" content="no" />
67
+ <meta content="TRUE" name="MSSmartTagsPreventParsing" />
68
+
69
+ <link rel="shortcut icon" href="/ca/img/adyen/favicon.ico" type="image/ico"/>
70
+
71
+ <script type="text/javascript" src="/ca/js/functions.js"></script>
72
+ <script src="/ca/js/prototype.js" type="text/javascript"></script>
73
+ <script src="/ca/js/scriptaculous.js" type="text/javascript"></script>
74
+
75
+ <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style.css" />
76
+ <!--[if lt IE 7]>
77
+ <link rel="stylesheet" type="text/css" href="/ca/css/adyen/style_ie6.css" />
78
+ <![endif]-->
79
+
80
+ <link rel="alternate" title="Payments Per Hour RSS" href="https://ca-test.adyen.com/reports/token/rss/lasttx/Company/SoundCloud/?user=skinadmin%40Company.SoundCloud&amp;amp%3Bkey=1334075779504&amp;amp%3Btoken=KV7veoeR9GsL%2FH%2BZrgI1Yhiio5I%3D" type="application/rss+xml" />
81
+ <link rel="alternate" title="Authorised Volume RSS" href="https://ca-test.adyen.com/reports/token/rss/authorisedtxrss/Company/SoundCloud/?user=skinadmin%40Company.SoundCloud&amp;amp%3Bkey=1334075779504&amp;amp%3Btoken=KV7veoeR9GsL%2FH%2BZrgI1Yhiio5I%3D" type="application/rss+xml" />
82
+ <link rel="alternate" title="System Messages RSS" href="https://ca-test.adyen.com/reports/token/rss/systemmessagesrss/Company/SoundCloud/?user=skinadmin%40Company.SoundCloud&amp;amp%3Bkey=1334075779504&amp;amp%3Btoken=KV7veoeR9GsL%2FH%2BZrgI1Yhiio5I%3D" type="application/rss+xml" />
83
+
84
+ </head>
85
+ <body>
86
+
87
+ <div id="topbar"><div class="iefillerdiv"></div></div>
88
+ <div id="middlebarcontainer">
89
+ <div id="middlebar">
90
+ <a href="/ca/ca/overview/default.shtml"><img id="mainlogo" src="/ca/img/adyen.png" alt="Logo"/>
91
+ <img id="testsystemwarning" src="/ca/img/adyen_test.png" alt="test"/></a>
92
+ <img id="maintagline" src="/ca/img/adyen_tagline.png" alt="Complex Finance, Online Insight" />
93
+ </div>
94
+ </div>
95
+ <div id="bottombar"><div id="bottombar2"></div></div>
96
+
97
+ <div id="maincontent">
98
+ <div id="boxleft">
99
+ <div id="infobox">
100
+ <ul class="nav">
101
+ </ul>
102
+ <div id="infoboxcontent">
103
+ <div id="merchantlogo">
104
+ <a href="/ca/ca/accounts/manage.shtml"><img src="/ca/ca/image.shtml?cachingId=Company.SoundCloud&amp;name=accountLogo&amp;mimeType=image%2Fpng" alt="merchantlogo"/></a>
105
+ </div>
106
+ <div>
107
+ <div style="padding-left: 0px;">
108
+ <a class="accountnav" href="/ca/ca/accounts/choose.shtml?setActiveAccountKey=Company.SoundCloud"
109
+ style="text-decoration: underline; color: #666;" >SoundCloud</a>
110
+ </div>
111
+ </div>
112
+
113
+ <div style="text-align: left; margin-top: 5px">
114
+ <!--a class="icon" href="/ca/ca/overview/default.shtml" title="Home"><img src="/ca/img/home.gif" alt="Home"/></a-->
115
+ <a class="icon" href="/ca/logoff.shtml" title="Sign Off"><img src="/ca/img/exit.png" alt="Sign Off"/> sign off</a>
116
+ <br/><a class="icon" href="/ca/ca/accounts/choose.shtml?chooseUserAccount=true"><img src="/ca/img/bookmark.png" alt="bookmarks"/> bookmarks</a>
117
+ </div>
118
+ </div>
119
+ </div>
120
+
121
+
122
+ <div class="bbarlmenu">
123
+ <div class="bbarrmenu">
124
+ <div class="bbarmenu">
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ <div id="menu">
130
+ <ul class="nav">
131
+ <li class="navfirstli">&nbsp;</li>
132
+ <li ><a href="/ca/ca/overview/default.shtml">Home</a></li>
133
+ <li ><a href="/ca/ca/payments/showList.shtml">Payments</a></li>
134
+ <li ><a href="/ca/ca/accounts/choose.shtml">Accounts</a></li>
135
+ <li ><a href="/ca/ca/reports/choose.shtml">Reports</a></li>
136
+ <li class="activelink" ><a href="/ca/ca/skin/skins.shtml">Skins</a></li>
137
+ <li ><a href="/ca/ca/config/choose.shtml">Settings</a></li>
138
+ <li ><a href="/ca/ca/support/start.shtml">Support</a></li>
139
+ </ul>
140
+ </div>
141
+ <div class="bbarlmenu">
142
+ <div class="bbarrmenu">
143
+ <div class="bbarmenu">
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <div id="contentbg">
150
+ <div id="content">
151
+ <div id="contentwrapper">
152
+
153
+
154
+
155
+ <div id="toolbar">
156
+ <ul id="tbtabs">
157
+ <li id="tbbut1" ><a href="/ca/ca/skin/skins.shtml">List</a></li>
158
+ <li id="tbbut2" ><a href="/ca/ca/skin/editskin.shtml?newSkin=true">New</a></li>
159
+ <li id="tbbut3" >
160
+ <a href="/ca/ca/skin/editskin.shtml?skinCode=7hFAQnmt">
161
+ Edit</a>
162
+ </li>
163
+ <li id="tbbut4" >
164
+ <a href="/ca/ca/skin/uploadskin.shtml?skinCode=7hFAQnmt">
165
+ Upload</a>
166
+ </li>
167
+ <li id="tbbut5" >
168
+ <a href="/ca/ca/skin/publishskin.shtml?skinCode=7hFAQnmt">
169
+ Publish</a>
170
+ </li>
171
+ <li id="tbbut6" ><a href="/ca/ca/skin/testhmac.shtml">Test HMAC</a></li>
172
+ <li id="tbbut7" class="activelink" >
173
+ <a href="/ca/ca/skin/testpayment.shtml?skinCode=7hFAQnmt">
174
+ Test</a>
175
+ </li>
176
+ </ul>
177
+ </div><div id="subcontent">
178
+
179
+
180
+
181
+
182
+
183
+ <h1 class="pagetitle">Do a Test Payment</h1>
184
+ <form method="post" action="/ca/ca/skin/testpayment.shtml">
185
+ <table class="data">
186
+ <tr>
187
+ <th class="row">Skin Code</th>
188
+ <td>7hFAQnmt</td>
189
+ </tr>
190
+ <tr>
191
+ <th class="row">Description</th>
192
+ <td>example</td>
193
+ </tr>
194
+ <tr>
195
+ <th class="row">Latest Version</th>
196
+ <td>43</td>
197
+ </tr>
198
+ <tr>
199
+ <td colspan="2">
200
+ Below is the version information for this skin on the live and test payment pages.
201
+ <br />
202
+ Note that there is a few minutes delay after saving or publishing before the skin
203
+ <br />
204
+ is deployed on the payment pages.
205
+ </td>
206
+ </tr>
207
+ <tr>
208
+ <th class="row">
209
+ <span class="floatLeft">Currently on Test</span>
210
+ <span class="floatRight">
211
+ <a id="versionOnTestInfo" onclick="return toggleTooltip($('versionOnTestInfo'), $('versionOnTestFrame'));" href="#">
212
+ <img style="vertical-align: middle" src="/ca/img/icons/information.png" alt="information" />
213
+ </a>
214
+ </span>
215
+ <div id="versionOnTestFrame" class="popupMsg popupMsgHover" style="display: none;">
216
+ <a class="closePopupButton" onclick="return toggleElementVisibility($('versionOnTestFrame'));" href="#">
217
+ <img src="/ca/img/icons/cancel.png" alt="close_popup" />
218
+ </a>
219
+ If the version on Test is not the same as the Latest version, it will be published automatically. Note that there is a few minutes delay after modifying the skin before it is deployed on the Test Hosted Payment Pages. </div>
220
+ </th>
221
+ <td>
222
+ <iframe src="https://test.adyen.com/hpp/version.shtml?skinCode=7hFAQnmt&amp;version=43" height="50" width="450"></iframe>
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <th class="row">
227
+ <span class="floatLeft">Currently on Live</span>
228
+ <span class="floatRight">
229
+ <a id="versionOnLiveInfo" onclick="return toggleTooltip($('versionOnLiveInfo'), $('versionOnLiveFrame'));" href="#">
230
+ <img style="vertical-align: middle" src="/ca/img/icons/information.png" alt="information" />
231
+ </a>
232
+ </span>
233
+ <div id="versionOnLiveFrame" class="popupMsg popupMsgHover" style="display: none;">
234
+ <a class="closePopupButton" onclick="return toggleElementVisibility($('versionOnLiveFrame'));" href="#">
235
+ <img src="/ca/img/icons/cancel.png" alt="close_popup" />
236
+ </a>
237
+ If the version on Live is not the same as the Latest version, you will have to Publish the Skin to Live via the Publish Tab. Note that there is a few minutes delay after publishing the skin before it is deployed on the Live Hosted Payment Pages. </div>
238
+ </th>
239
+ <td>
240
+ <iframe src="https://live.adyen.com/hpp/version.shtml?skinCode=7hFAQnmt&amp;version=43" height="50" width="450"></iframe>
241
+ </td>
242
+ </tr>
243
+ <tr>
244
+ <th class="row">Amount</th>
245
+ <td>
246
+ <input type="text" name="paymentAmount" size="7" value="199" />&nbsp;
247
+ <select name="currencyCode">
248
+ <option>CHF</option>
249
+ <option selected="selected">EUR</option>
250
+ <option>GBP</option>
251
+ <option>USD</option>
252
+ <option>DKK</option>
253
+ <option>PLN</option>
254
+ <option>SEK</option>
255
+ <option>NOK</option>
256
+ <option value="">--</option>
257
+ <option value="AED">AED</option>
258
+ <option value="ANG">ANG</option>
259
+ <option value="ARS">ARS</option>
260
+ <option value="AUD">AUD</option>
261
+ <option value="BAM">BAM</option>
262
+ <option value="BGL">BGL</option>
263
+ <option value="BGN">BGN</option>
264
+ <option value="BHD">BHD</option>
265
+ <option value="BRL">BRL</option>
266
+ <option value="CAD">CAD</option>
267
+ <option value="CHF">CHF</option>
268
+ <option value="CLP">CLP</option>
269
+ <option value="CNY">CNY</option>
270
+ <option value="COP">COP</option>
271
+ <option value="CSD">CSD</option>
272
+ <option value="CZK">CZK</option>
273
+ <option value="DKK">DKK</option>
274
+ <option value="EEK">EEK</option>
275
+ <option value="EGP">EGP</option>
276
+ <option value="EUR">EUR</option>
277
+ <option value="FJD">FJD</option>
278
+ <option value="GBP">GBP</option>
279
+ <option value="HKD">HKD</option>
280
+ <option value="HRK">HRK</option>
281
+ <option value="HUF">HUF</option>
282
+ <option value="IDR">IDR</option>
283
+ <option value="ILS">ILS</option>
284
+ <option value="INR">INR</option>
285
+ <option value="ISK">ISK</option>
286
+ <option value="JOD">JOD</option>
287
+ <option value="JPY">JPY</option>
288
+ <option value="KES">KES</option>
289
+ <option value="KRW">KRW</option>
290
+ <option value="KWD">KWD</option>
291
+ <option value="KZT">KZT</option>
292
+ <option value="LBP">LBP</option>
293
+ <option value="LKR">LKR</option>
294
+ <option value="LTL">LTL</option>
295
+ <option value="LVL">LVL</option>
296
+ <option value="MAD">MAD</option>
297
+ <option value="MXN">MXN</option>
298
+ <option value="MXP">MXP</option>
299
+ <option value="MYR">MYR</option>
300
+ <option value="NOK">NOK</option>
301
+ <option value="NZD">NZD</option>
302
+ <option value="OMR">OMR</option>
303
+ <option value="PEN">PEN</option>
304
+ <option value="PHP">PHP</option>
305
+ <option value="PKR">PKR</option>
306
+ <option value="PLN">PLN</option>
307
+ <option value="QAR">QAR</option>
308
+ <option value="ROL">ROL</option>
309
+ <option value="RON">RON</option>
310
+ <option value="RUB">RUB</option>
311
+ <option value="SAR">SAR</option>
312
+ <option value="SEK">SEK</option>
313
+ <option value="SGD">SGD</option>
314
+ <option value="SKK">SKK</option>
315
+ <option value="THB">THB</option>
316
+ <option value="TRY">TRY</option>
317
+ <option value="TWD">TWD</option>
318
+ <option value="UAH">UAH</option>
319
+ <option value="USD">USD</option>
320
+ <option value="UYU">UYU</option>
321
+ <option value="VND">VND</option>
322
+ <option value="XCD">XCD</option>
323
+ <option value="ZAR">ZAR</option>
324
+ </select>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <th class="row">Country Code</th>
329
+ <td>
330
+ <select name="countryCode">
331
+ <option value="">Use IP countryCode</option>
332
+ <option value="NL">NL</option>
333
+ <option value="DE">DE</option>
334
+ <option value="GB">GB</option>
335
+ <option value="FR">FR</option>
336
+ <option value="US">US</option>
337
+ <option value="IT">IT</option>
338
+ <option value="">--</option>
339
+ <option value="AD">AD</option>
340
+ <option value="AE">AE</option>
341
+ <option value="AF">AF</option>
342
+ <option value="AG">AG</option>
343
+ <option value="AI">AI</option>
344
+ <option value="AL">AL</option>
345
+ <option value="AM">AM</option>
346
+ <option value="AN">AN</option>
347
+ <option value="AO">AO</option>
348
+ <option value="AQ">AQ</option>
349
+ <option value="AR">AR</option>
350
+ <option value="AS">AS</option>
351
+ <option value="AT">AT</option>
352
+ <option value="AU">AU</option>
353
+ <option value="AW">AW</option>
354
+ <option value="AZ">AZ</option>
355
+ <option value="BA">BA</option>
356
+ <option value="BB">BB</option>
357
+ <option value="BD">BD</option>
358
+ <option value="BE">BE</option>
359
+ <option value="BF">BF</option>
360
+ <option value="BG">BG</option>
361
+ <option value="BH">BH</option>
362
+ <option value="BI">BI</option>
363
+ <option value="BJ">BJ</option>
364
+ <option value="BM">BM</option>
365
+ <option value="BN">BN</option>
366
+ <option value="BO">BO</option>
367
+ <option value="BR">BR</option>
368
+ <option value="BS">BS</option>
369
+ <option value="BT">BT</option>
370
+ <option value="BV">BV</option>
371
+ <option value="BW">BW</option>
372
+ <option value="BY">BY</option>
373
+ <option value="BZ">BZ</option>
374
+ <option value="CA">CA</option>
375
+ <option value="CC">CC</option>
376
+ <option value="CD">CD</option>
377
+ <option value="CF">CF</option>
378
+ <option value="CG">CG</option>
379
+ <option value="CH">CH</option>
380
+ <option value="CI">CI</option>
381
+ <option value="CK">CK</option>
382
+ <option value="CL">CL</option>
383
+ <option value="CM">CM</option>
384
+ <option value="CN">CN</option>
385
+ <option value="CO">CO</option>
386
+ <option value="CR">CR</option>
387
+ <option value="CU">CU</option>
388
+ <option value="CV">CV</option>
389
+ <option value="CX">CX</option>
390
+ <option value="CY">CY</option>
391
+ <option value="CZ">CZ</option>
392
+ <option value="DE">DE</option>
393
+ <option value="DJ">DJ</option>
394
+ <option value="DK">DK</option>
395
+ <option value="DM">DM</option>
396
+ <option value="DO">DO</option>
397
+ <option value="DZ">DZ</option>
398
+ <option value="EC">EC</option>
399
+ <option value="EE">EE</option>
400
+ <option value="EG">EG</option>
401
+ <option value="EH">EH</option>
402
+ <option value="ER">ER</option>
403
+ <option value="ES">ES</option>
404
+ <option value="ET">ET</option>
405
+ <option value="FI">FI</option>
406
+ <option value="FJ">FJ</option>
407
+ <option value="FK">FK</option>
408
+ <option value="FM">FM</option>
409
+ <option value="FO">FO</option>
410
+ <option value="FR">FR</option>
411
+ <option value="FX">FX</option>
412
+ <option value="GA">GA</option>
413
+ <option value="GB">GB</option>
414
+ <option value="GD">GD</option>
415
+ <option value="GE">GE</option>
416
+ <option value="GF">GF</option>
417
+ <option value="GG">GG</option>
418
+ <option value="GH">GH</option>
419
+ <option value="GI">GI</option>
420
+ <option value="GL">GL</option>
421
+ <option value="GM">GM</option>
422
+ <option value="GN">GN</option>
423
+ <option value="GP">GP</option>
424
+ <option value="GQ">GQ</option>
425
+ <option value="GR">GR</option>
426
+ <option value="GS">GS</option>
427
+ <option value="GT">GT</option>
428
+ <option value="GU">GU</option>
429
+ <option value="GW">GW</option>
430
+ <option value="GY">GY</option>
431
+ <option value="HK">HK</option>
432
+ <option value="HM">HM</option>
433
+ <option value="HN">HN</option>
434
+ <option value="HR">HR</option>
435
+ <option value="HT">HT</option>
436
+ <option value="HU">HU</option>
437
+ <option value="ID">ID</option>
438
+ <option value="IE">IE</option>
439
+ <option value="IL">IL</option>
440
+ <option value="IM">IM</option>
441
+ <option value="IN">IN</option>
442
+ <option value="IO">IO</option>
443
+ <option value="IQ">IQ</option>
444
+ <option value="IR">IR</option>
445
+ <option value="IS">IS</option>
446
+ <option value="IT">IT</option>
447
+ <option value="JE">JE</option>
448
+ <option value="JM">JM</option>
449
+ <option value="JO">JO</option>
450
+ <option value="JP">JP</option>
451
+ <option value="KE">KE</option>
452
+ <option value="KG">KG</option>
453
+ <option value="KH">KH</option>
454
+ <option value="KI">KI</option>
455
+ <option value="KM">KM</option>
456
+ <option value="KN">KN</option>
457
+ <option value="KP">KP</option>
458
+ <option value="KR">KR</option>
459
+ <option value="KW">KW</option>
460
+ <option value="KY">KY</option>
461
+ <option value="KZ">KZ</option>
462
+ <option value="LA">LA</option>
463
+ <option value="LB">LB</option>
464
+ <option value="LC">LC</option>
465
+ <option value="LI">LI</option>
466
+ <option value="LK">LK</option>
467
+ <option value="LR">LR</option>
468
+ <option value="LS">LS</option>
469
+ <option value="LT">LT</option>
470
+ <option value="LU">LU</option>
471
+ <option value="LV">LV</option>
472
+ <option value="LY">LY</option>
473
+ <option value="MA">MA</option>
474
+ <option value="MC">MC</option>
475
+ <option value="MD">MD</option>
476
+ <option value="ME">ME</option>
477
+ <option value="MG">MG</option>
478
+ <option value="MH">MH</option>
479
+ <option value="MK">MK</option>
480
+ <option value="ML">ML</option>
481
+ <option value="MM">MM</option>
482
+ <option value="MN">MN</option>
483
+ <option value="MO">MO</option>
484
+ <option value="MP">MP</option>
485
+ <option value="MQ">MQ</option>
486
+ <option value="MR">MR</option>
487
+ <option value="MS">MS</option>
488
+ <option value="MT">MT</option>
489
+ <option value="MU">MU</option>
490
+ <option value="MV">MV</option>
491
+ <option value="MW">MW</option>
492
+ <option value="MX">MX</option>
493
+ <option value="MY">MY</option>
494
+ <option value="MZ">MZ</option>
495
+ <option value="NA">NA</option>
496
+ <option value="NC">NC</option>
497
+ <option value="NE">NE</option>
498
+ <option value="NF">NF</option>
499
+ <option value="NG">NG</option>
500
+ <option value="NI">NI</option>
501
+ <option value="NL">NL</option>
502
+ <option value="NO">NO</option>
503
+ <option value="NP">NP</option>
504
+ <option value="NR">NR</option>
505
+ <option value="NU">NU</option>
506
+ <option value="NZ">NZ</option>
507
+ <option value="OM">OM</option>
508
+ <option value="PA">PA</option>
509
+ <option value="PE">PE</option>
510
+ <option value="PF">PF</option>
511
+ <option value="PG">PG</option>
512
+ <option value="PH">PH</option>
513
+ <option value="PK">PK</option>
514
+ <option value="PL">PL</option>
515
+ <option value="PM">PM</option>
516
+ <option value="PN">PN</option>
517
+ <option value="PR">PR</option>
518
+ <option value="PS">PS</option>
519
+ <option value="PT">PT</option>
520
+ <option value="PW">PW</option>
521
+ <option value="PY">PY</option>
522
+ <option value="QA">QA</option>
523
+ <option value="RE">RE</option>
524
+ <option value="RO">RO</option>
525
+ <option value="RS">RS</option>
526
+ <option value="RU">RU</option>
527
+ <option value="RW">RW</option>
528
+ <option value="SA">SA</option>
529
+ <option value="SB">SB</option>
530
+ <option value="SC">SC</option>
531
+ <option value="SD">SD</option>
532
+ <option value="SE">SE</option>
533
+ <option value="SG">SG</option>
534
+ <option value="SH">SH</option>
535
+ <option value="SI">SI</option>
536
+ <option value="SJ">SJ</option>
537
+ <option value="SK">SK</option>
538
+ <option value="SL">SL</option>
539
+ <option value="SM">SM</option>
540
+ <option value="SN">SN</option>
541
+ <option value="SO">SO</option>
542
+ <option value="SR">SR</option>
543
+ <option value="ST">ST</option>
544
+ <option value="SV">SV</option>
545
+ <option value="SY">SY</option>
546
+ <option value="SZ">SZ</option>
547
+ <option value="TC">TC</option>
548
+ <option value="TD">TD</option>
549
+ <option value="TF">TF</option>
550
+ <option value="TG">TG</option>
551
+ <option value="TH">TH</option>
552
+ <option value="TJ">TJ</option>
553
+ <option value="TK">TK</option>
554
+ <option value="TL">TL</option>
555
+ <option value="TM">TM</option>
556
+ <option value="TN">TN</option>
557
+ <option value="TO">TO</option>
558
+ <option value="TR">TR</option>
559
+ <option value="TT">TT</option>
560
+ <option value="TV">TV</option>
561
+ <option value="TW">TW</option>
562
+ <option value="TZ">TZ</option>
563
+ <option value="UA">UA</option>
564
+ <option value="UG">UG</option>
565
+ <option value="UM">UM</option>
566
+ <option value="US">US</option>
567
+ <option value="UY">UY</option>
568
+ <option value="UZ">UZ</option>
569
+ <option value="VA">VA</option>
570
+ <option value="VC">VC</option>
571
+ <option value="VE">VE</option>
572
+ <option value="VG">VG</option>
573
+ <option value="VI">VI</option>
574
+ <option value="VN">VN</option>
575
+ <option value="VU">VU</option>
576
+ <option value="WF">WF</option>
577
+ <option value="WS">WS</option>
578
+ <option value="YE">YE</option>
579
+ <option value="YT">YT</option>
580
+ <option value="ZA">ZA</option>
581
+ <option value="ZM">ZM</option>
582
+ <option value="ZW">ZW</option>
583
+ <option value="ZZ">ZZ</option>
584
+ </select>
585
+ </td>
586
+ </tr>
587
+ <tr>
588
+ <th class="row">Shopper Locale</th>
589
+ <td>
590
+ <input type="text" id="shopperLocale" name="shopperLocale" value="en_GB" size="8" />
591
+ (<a href="#" onclick="document.getElementById('shopperLocale').value='en_GB'; return false;">en_GB</a>,
592
+ <a href="#" onclick="document.getElementById('shopperLocale').value='nl'; return false;">nl</a>,
593
+ <a href="#" onclick="document.getElementById('shopperLocale').value='fr'; return false;">fr</a>,
594
+ <a href="#" onclick="document.getElementById('shopperLocale').value='de'; return false;">de</a>)
595
+ </td>
596
+ </tr>
597
+ <tr>
598
+ <th class="row">Merchant Reference</th>
599
+ <td>
600
+ <input type="text" name="merchantReference" value="SKINTEST-1334857325482" size="20" />
601
+ </td>
602
+ </tr>
603
+ <tr>
604
+ <th class="row">Merchant Account</th>
605
+ <td>
606
+ <select name="merchantAccount">
607
+ <option>SoundCloudCOM</option>
608
+ </select>
609
+ </td>
610
+ </tr>
611
+
612
+
613
+ <tr>
614
+ <th class="row">System</th>
615
+ <td>
616
+ <input type="radio" id="testsystem" checked="checked" name="system" value="test" /><label for="testsystem">Test System</label> &nbsp;&nbsp;&nbsp;
617
+ <input type="radio" id="livesystem" name="system" value="live" /><label for="livesystem">Live System</label>
618
+ </td>
619
+ </tr>
620
+
621
+ <tr>
622
+ <th class="row">Skip if only one payment method available</th>
623
+ <td>
624
+ <input style="border: none;" type="checkbox" name="skipSelection" value="true" /> Skip payment method selection if possible.
625
+ </td>
626
+ </tr>
627
+
628
+ <tr>
629
+ <th class="row">One Page Payment page</th>
630
+ <td>
631
+ <input style="border: none;" type="checkbox" name="onePagePayment" value="true" /> One Page Payment.
632
+ </td>
633
+ </tr>
634
+
635
+
636
+ <tr>
637
+ <td colspan="2">&nbsp;</td>
638
+ </tr>
639
+ <tr>
640
+ <td colspan="2">
641
+ <input type="hidden" name="skinCode" value="7hFAQnmt" />
642
+ <input type="submit" name="test" value="Generate Payment Form" />
643
+ </td>
644
+ </tr>
645
+ </table>
646
+ </form>
647
+ </div>
648
+
649
+ <div class="bbarl">
650
+ <div class="bbarr">
651
+ <div class="bbar">
652
+ </div>
653
+ </div>
654
+ </div>
655
+ </div>
656
+
657
+
658
+ </div>
659
+ </div>
660
+ </div>
661
+ </body>
662
+ </html>
663
+
664
+ http_version:
665
+ recorded_at: Thu, 19 Apr 2012 17:42:05 GMT
666
+ - request:
667
+ method: get
668
+ uri: https://live.adyen.com/hpp/version.shtml?skinCode=7hFAQnmt
669
+ body:
670
+ encoding: US-ASCII
671
+ string: ""
672
+ headers:
673
+ Accept:
674
+ - "*/*"
675
+ User-Agent:
676
+ - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
677
+ Accept-Encoding:
678
+ - gzip,deflate,identity
679
+ Accept-Charset:
680
+ - ISO-8859-1,utf-8;q=0.7,*;q=0.7
681
+ Accept-Language:
682
+ - en-us,en;q=0.5
683
+ Host:
684
+ - live.adyen.com
685
+ Connection:
686
+ - keep-alive
687
+ Keep-Alive:
688
+ - 300
689
+ response:
690
+ status:
691
+ code: 200
692
+ message: OK
693
+ headers:
694
+ Date:
695
+ - Thu, 19 Apr 2012 17:42:06 GMT
696
+ Server:
697
+ - Apache
698
+ Set-Cookie:
699
+ - JSESSIONID=BC96BB75DA39A7E9D8B23C5E396E6DEE.live7e; Path=/hpp/; Secure; HttpOnly
700
+ P3p:
701
+ - policyref="/w3c/policy.xml", CP="NOI DSP COR CURa ADMa DEVa OUR NOR BUS FIN STA"
702
+ Cache-Control:
703
+ - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
704
+ Pragma:
705
+ - no-cache
706
+ Expires:
707
+ - "-1"
708
+ Keep-Alive:
709
+ - timeout=15, max=100
710
+ Connection:
711
+ - Keep-Alive
712
+ Transfer-Encoding:
713
+ - chunked
714
+ Content-Type:
715
+ - text/html;charset=UTF-8
716
+ body:
717
+ encoding: US-ASCII
718
+ string: |-
719
+ <html>
720
+ <head>
721
+ <title>Version</title>
722
+ <style type="text/css">
723
+ body {
724
+ font-family: sans-serif;
725
+ font-size: 0.85em;
726
+ font-weight: bold;
727
+ }
728
+ </style>
729
+ </head>
730
+ <body>
731
+ <p>
732
+ Version:0
733
+ <br />
734
+ Modification Date:unknown
735
+ </p>
736
+ </body>
737
+ </html>
738
+ http_version:
739
+ recorded_at: Thu, 19 Apr 2012 17:42:06 GMT
740
+ - request:
741
+ method: get
742
+ uri: https://test.adyen.com/hpp/version.shtml?skinCode=7hFAQnmt
743
+ body:
744
+ encoding: US-ASCII
745
+ string: ""
746
+ headers:
747
+ Accept:
748
+ - "*/*"
749
+ User-Agent:
750
+ - Mechanize/2.3 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
751
+ Accept-Encoding:
752
+ - gzip,deflate,identity
753
+ Accept-Charset:
754
+ - ISO-8859-1,utf-8;q=0.7,*;q=0.7
755
+ Accept-Language:
756
+ - en-us,en;q=0.5
757
+ Host:
758
+ - test.adyen.com
759
+ Connection:
760
+ - keep-alive
761
+ Keep-Alive:
762
+ - 300
763
+ response:
764
+ status:
765
+ code: 200
766
+ message: OK
767
+ headers:
768
+ Date:
769
+ - Thu, 19 Apr 2012 17:42:07 GMT
770
+ Server:
771
+ - Apache
772
+ Set-Cookie:
773
+ - JSESSIONID=7F868EFCB2668BC0BF83EE3BC1D5502C.test3e; Path=/hpp/; Secure; HttpOnly
774
+ P3p:
775
+ - policyref="/w3c/policy.xml", CP="NOI DSP COR CURa ADMa DEVa OUR NOR BUS FIN STA"
776
+ Cache-Control:
777
+ - no-cache, no-store, must-revalidate, max-age=0, post-check=0, pre-check=0
778
+ Pragma:
779
+ - no-cache
780
+ Expires:
781
+ - "-1"
782
+ Keep-Alive:
783
+ - timeout=15, max=100
784
+ Connection:
785
+ - Keep-Alive
786
+ Transfer-Encoding:
787
+ - chunked
788
+ Content-Type:
789
+ - text/html;charset=UTF-8
790
+ body:
791
+ encoding: US-ASCII
792
+ string: |-
793
+ <html>
794
+ <head>
795
+ <title>Version</title>
796
+ <style type="text/css">
797
+ body {
798
+ font-family: sans-serif;
799
+ font-size: 0.85em;
800
+ font-weight: bold;
801
+ }
802
+ </style>
803
+ </head>
804
+ <body>
805
+ <p>
806
+ Version:43
807
+ <br />
808
+ Modification Date:2012-04-19T17:35:34.68Z
809
+ </p>
810
+ </body>
811
+ </html>
812
+ http_version:
813
+ recorded_at: Thu, 19 Apr 2012 17:42:07 GMT
814
+ recorded_with: VCR 2.0.1