3 <title>Payment System</title>
4 <style type="text/css">
5 span.foldopened { color: white; font-size: xx-small;
6 border-width: 1; font-family: monospace; padding: 0em 0.25em 0em 0.25em; background: #e0e0e0;
11 span.foldclosed { color: #666666; font-size: xx-small;
12 border-width: 1; font-family: monospace; padding: 0em 0.25em 0em 0.25em; background: #e0e0e0;
16 span.foldspecial { color: #666666; font-size: xx-small; border-style: none solid solid none;
17 border-color: #CCCCCC; border-width: 1; font-family: sans-serif; padding: 0em 0.1em 0em 0.1em; background: #e0e0e0;
20 li { list-style: none; }
22 span.l { color: red; font-weight: bold; }
24 a:link {text-decoration: none; color: black; }
25 a:visited {text-decoration: none; color: black; }
26 a:active {text-decoration: none; color: black; }
27 a:hover {text-decoration: none; color: black; background: #eeeee0; }
30 <!-- ^ Position is not set to relative / absolute here because of Mozilla -->
34 <script language="JavaScript">
35 // Here we implement folding. It works fine with MSIE5.5, MSIE6.0 and
38 if (document.layers) {
39 //Netscape 4 specific code
42 if (document.getElementById) {
43 //Netscape 6 specific code
44 pre = 'document.getElementById("';
48 pre = 'document.all.';
51 function layer_exists(layer) {
53 eval(pre + layer + post);
58 function show_layer(layer) {
59 eval(pre + layer + post).position = 'relative';
60 eval(pre + layer + post).visibility = 'visible'; }
62 function hide_layer(layer) {
63 eval(pre + layer + post).visibility = 'hidden';
64 eval(pre + layer + post).position = 'absolute'; }
66 function hide_folder(folder) {
67 hide_folding_layer(folder)
68 show_layer('show'+folder);
70 scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
73 function show_folder(folder) {
74 // Precondition: all subfolders are folded
76 show_layer('hide'+folder);
77 hide_layer('show'+folder);
78 show_layer('fold'+folder);
80 scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
83 for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
84 show_layer('show'+folder+'_'+i); }
86 function show_folder_completely(folder) {
87 // Precondition: all subfolders are folded
89 show_layer('hide'+folder);
90 hide_layer('show'+folder);
91 show_layer('fold'+folder);
93 scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
96 for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
97 show_folder_completely(folder+'_'+i); }
102 function hide_folding_layer(folder) {
104 for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
105 hide_folding_layer(folder+'_'+i); }
107 hide_layer('hide'+folder);
108 hide_layer('show'+folder);
109 hide_layer('fold'+folder);
111 scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
114 function fold_document() {
117 for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
118 hide_folder(folder+'_'+i); }
121 function unfold_document() {
124 for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
125 show_folder_completely(folder+'_'+i); }
129 <SPAN class=foldspecial onclick="fold_document()">All +</SPAN>
130 <SPAN class=foldspecial onclick="unfold_document()">All -</SPAN>
131 <p><a href="Ship-Simu-Ship-Simulator.mm.html" target="_blank"><span class=l>~</span> <span style="font-size: 150%;font-family: SansSerif, sans-serif; font-weight: bold; ">Payment System</span>
133 <ul><li>They all must be queued if a user orders something
136 <li><span id="show1_1" class="foldclosed" onClick="show_folder('1_1')" style="POSITION: absolute">+</span> <span id="hide1_1" class="foldopened" onClick="hide_folder('1_1')">-</Span>
137 The ordered item must be validated if it is being sold
138 <ul id="fold1_1" style="POSITION: relative; VISIBILITY: visible;"><li>This should be done by a composite filter pattern (composite combined with filter)
144 <li><span id="show1_2" class="foldclosed" onClick="show_folder('1_2')" style="POSITION: absolute">+</span> <span id="hide1_2" class="foldopened" onClick="hide_folder('1_2')">-</Span>
145 An other pattern shall e.g. only book the item/money if the API gives positive reply
146 <ul id="fold1_2" style="POSITION: relative; VISIBILITY: visible;"><li>State-depending pattern?
152 <li><span id="show1_3" class="foldclosed" onClick="show_folder('1_3')" style="POSITION: absolute">+</span> <span id="hide1_3" class="foldopened" onClick="hide_folder('1_3')">-</Span>
153 Different payment APIs exists
154 <ul id="fold1_3" style="POSITION: relative; VISIBILITY: visible;"><li><span id="show1_3_1" class="foldclosed" onClick="show_folder('1_3_1')" style="POSITION: absolute">+</span> <span id="hide1_3_1" class="foldopened" onClick="hide_folder('1_3_1')">-</Span>
156 <ul id="fold1_3_1" style="POSITION: relative; VISIBILITY: visible;"><li>Request: GET,POST
159 <li>Response: Own format
165 <li><span id="show1_3_2" class="foldclosed" onClick="show_folder('1_3_2')" style="POSITION: absolute">+</span> <span id="hide1_3_2" class="foldopened" onClick="hide_folder('1_3_2')">-</Span>
167 <ul id="fold1_3_2" style="POSITION: relative; VISIBILITY: visible;"><li>Need special agreement here!
173 <li>Response: Own format (?)
179 <li><span id="show1_3_3" class="foldclosed" onClick="show_folder('1_3_3')" style="POSITION: absolute">+</span> <span id="hide1_3_3" class="foldopened" onClick="hide_folder('1_3_3')">-</Span>
181 <ul id="fold1_3_3" style="POSITION: relative; VISIBILITY: visible;"><li><span style="font-family: SansSerif, sans-serif; font-weight: bold; ">Has expensive fees for sender</span>
187 <li><span id="show1_3_4" class="foldclosed" onClick="show_folder('1_3_4')" style="POSITION: absolute">+</span> <span id="hide1_3_4" class="foldopened" onClick="hide_folder('1_3_4')">-</Span>
188 <a href="http://www.moneybookers.com/merchant/en/automated_payments_interface_manual.pdf" target="_blank"><span class=l>~</span> Moneybookers
190 <ul id="fold1_3_4" style="POSITION: relative; VISIBILITY: visible;"><li><span id="show1_3_4_1" class="foldclosed" onClick="show_folder('1_3_4_1')" style="POSITION: absolute">+</span> <span id="hide1_3_4_1" class="foldopened" onClick="hide_folder('1_3_4_1')">-</Span>
192 <ul id="fold1_3_4_1" style="POSITION: relative; VISIBILITY: visible;"><li>POST also?
211 </ul><SCRIPT language=JavaScript>