]> git.mxchange.org Git - shipsimu-docs.git/blob - shipsimu-docs/Payment-System.mm.html
global on _SERVER removed
[shipsimu-docs.git] / shipsimu-docs / Payment-System.mm.html
1 <html>
2 <head>
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;
7     VISIBILITY: visible;
8     cursor:pointer; }
9
10
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;
13     VISIBILITY: hidden;
14     cursor:pointer; }
15
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;
18     cursor:pointer; }
19
20     li { list-style: none; }
21
22     span.l { color: red; font-weight: bold; }
23
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; }
28
29 </style>
30 <!-- ^ Position is not set to relative / absolute here because of Mozilla -->
31 </head>
32 <body>
33
34 <script language="JavaScript">
35    // Here we implement folding. It works fine with MSIE5.5, MSIE6.0 and
36    // Mozilla 0.9.6.
37
38    if (document.layers) {
39       //Netscape 4 specific code
40       pre = 'document.';
41       post = ''; }
42    if (document.getElementById) {
43       //Netscape 6 specific code
44       pre = 'document.getElementById("';
45       post = '").style'; }
46    if (document.all) {
47       //IE4+ specific code
48       pre = 'document.all.';
49       post = '.style'; }
50
51 function layer_exists(layer) {
52    try {
53       eval(pre + layer + post);
54       return true; }
55    catch (error) {
56       return false; }}
57
58 function show_layer(layer) {
59    eval(pre + layer + post).position = 'relative'; 
60    eval(pre + layer + post).visibility = 'visible'; }
61
62 function hide_layer(layer) {
63    eval(pre + layer + post).visibility = 'hidden';
64    eval(pre + layer + post).position = 'absolute'; }
65
66 function hide_folder(folder) {
67     hide_folding_layer(folder)
68     show_layer('show'+folder);
69
70     scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
71 }
72
73 function show_folder(folder) {
74     // Precondition: all subfolders are folded
75
76     show_layer('hide'+folder);
77     hide_layer('show'+folder);
78     show_layer('fold'+folder);
79
80     scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
81
82     var i;
83     for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
84        show_layer('show'+folder+'_'+i); }
85 }
86 function show_folder_completely(folder) {
87     // Precondition: all subfolders are folded
88
89     show_layer('hide'+folder);
90     hide_layer('show'+folder);
91     show_layer('fold'+folder);
92
93     scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
94
95     var i;
96     for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
97        show_folder_completely(folder+'_'+i); }
98 }
99
100
101
102 function hide_folding_layer(folder) {
103    var i;
104    for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
105        hide_folding_layer(folder+'_'+i); }
106
107    hide_layer('hide'+folder);
108    hide_layer('show'+folder);
109    hide_layer('fold'+folder);
110
111    scrollBy(0,0); // This is a work around to make it work in Browsers (Explorer, Mozilla)
112 }
113
114 function fold_document() {
115    var i;
116    var folder = '1';
117    for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
118        hide_folder(folder+'_'+i); }
119 }
120
121 function unfold_document() {
122    var i;
123    var folder = '1';
124    for (i=1; layer_exists('fold'+folder+'_'+i); ++i) {
125        show_folder_completely(folder+'_'+i); }
126 }
127
128 </script>
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>&nbsp;<span style="font-size: 150%;font-family: SansSerif, sans-serif; font-weight: bold; ">Payment System</span>
132 </a>
133 <ul><li>They all must be queued if a user orders something
134
135 </li>
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)
139
140 </li>
141
142 </ul>
143 </li>
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?
147
148 </li>
149
150 </ul>
151 </li>
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>
155 Wernis API
156 <ul id="fold1_3_1" style="POSITION: relative; VISIBILITY: visible;"><li>Request: GET,POST
157
158 </li>
159 <li>Response: Own format
160
161 </li>
162
163 </ul>
164 </li>
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>
166 Primera API
167 <ul id="fold1_3_2" style="POSITION: relative; VISIBILITY: visible;"><li>Need special agreement here!
168
169 </li>
170 <li>Request: POST
171
172 </li>
173 <li>Response: Own format (?)
174
175 </li>
176
177 </ul>
178 </li>
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>
180 (Paypal)
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>
182
183 </li>
184
185 </ul>
186 </li>
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>&nbsp;Moneybookers
189 </a>
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>
191 Request: GET
192 <ul id="fold1_3_4_1" style="POSITION: relative; VISIBILITY: visible;"><li>POST also?
193
194 </li>
195
196 </ul>
197 </li>
198 <li>Response: XML
199
200 </li>
201
202 </ul>
203 </li>
204 <li>Rambler?
205
206 </li>
207
208 </ul>
209 </li>
210
211 </ul><SCRIPT language=JavaScript>
212 fold_document();
213 </SCRIPT>
214 </body>
215 </html>