Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
payment_gateway_datacash_management.inc
1 <?php
17 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
18 
30 {
31 
32 
38  {
39  $this->Asset_Management($pm);
40  $this->vars = Array(
41  'client' => Array(
42  'added' => '0.1',
43  'type' => 'text',
44  'default' => '',
45  'description' => 'The client ID of the Datacash Account used for the e-commerce transaction',
46  ),
47  'password' => Array(
48  'added' => '0.1',
49  'type' => 'password',
50  'default' => '',
51  'description' => 'The password of the Datacash Account used for the e-commerce transaction',
52  ),
53  'datacash_api_path' => Array(
54  'added' => '0.1',
55  'type' => 'text',
56  'default' => '/usr/bin/DataCash.php',
57  'description' => 'The path to the Datacash PHP API',
58  ),
59  'cardinfo_dir_path' => Array(
60  'added' => '0.1',
61  'type' => 'text',
62  'default' => '/usr/bin/CardInfoBins',
63  'description' => 'The path to the directory of CardInfo files',
64  ),
65  'timeout' => Array(
66  'added' => '0.1',
67  'type' => 'int',
68  'default' => '60',
69  'description' => 'How long to wait for a response, in seconds, before returning an error',
70  'parameters' => Array(
71  'allow_negative' => FALSE,
72  'allow_empty' => TRUE,
73  ),
74  ),
75  'currency' => Array(
76  'added' => '0.1',
77  'type' => 'selection',
78  'default' => 'GBP',
79  'description' => 'The currency used in all the e-commerce transactions',
80  'parameters' => Array(
81  'multiple' => FALSE,
82  'allow_empty' => FALSE,
83  'options' => Array(
84  'GBP' => 'GBP',
85  'AUD' => 'AUD',
86  'USD' => 'USD',
87  'EUR' => 'EUR',
88  'JPY' => 'JPY',
89  'CAD' => 'CAD',
90  ),
91  ),
92  ),
93  'merchant_url' => Array(
94  'added' => '0.1',
95  'type' => 'text',
96  'default' => '',
97  'description' => 'The URL of the website on which the payment is being made',
98  ),
99  'purchase_desc' => Array(
100  'added' => '0.1',
101  'type' => 'text',
102  'default' => 'The total amount',
103  'description' => 'A short description of what has been purchased. This is shown to the card holder by the ACS',
104  ),
105  'nonthreed_card_types' => Array(
106  'added' => '0.1',
107  'type' => 'selection',
108  'default' => 'Solo',
109  'description' => 'The currency used in all the e-commerce transactions',
110  'parameters' => Array(
111  'multiple' => TRUE,
112  'allow_empty' => TRUE,
113  'options' => Array(
114  'Debit Mastercard' => 'Debit Mastercard',
115  'Mastercard' => 'Mastercard',
116  'VISA' => 'VISA',
117  'VISA Delta' => 'VISA Delta',
118  'VISA Electron' => 'VISA Electron',
119  'VISA Purchasing' => 'VISA Purchasing',
120  'Solo' => 'Solo',
121  ),
122  ),
123  ),
124  'avscv2_standard_policy'=> Array(
125  'added' => '0.1',
126  'type' => 'selection',
127  'default' => '0',
128  'description' => 'The standard policy used in all the e-commerce transactions',
129  'parameters' => Array(
130  'multiple' => FALSE,
131  'allow_empty' => FALSE,
132  'options' => Array(
133  '0' => 'No',
134  '1' => 'AVS check',
135  '2' => 'CV2 check',
136  '3' => 'both AVS and CV2 check',
137  '5' => 'Either AVS check or NOT CHECKED',
138  '6' => 'Either CV2 check or NOT CHECKED',
139  '7' => 'Either AVS and CV2 check or NOT CHECKED',
140  ),
141  ),
142  ),
143  'addr1_var_name' => Array(
144  'added' => '0.1',
145  'type' => 'text',
146  'default' => '',
147  'description' => 'The pass through variable name of Address 1',
148  ),
149  'addr2_var_name' => Array(
150  'added' => '0.1',
151  'type' => 'text',
152  'default' => '',
153  'description' => 'The pass through variable name of Address 2',
154  ),
155  'addr3_var_name' => Array(
156  'added' => '0.1',
157  'type' => 'text',
158  'default' => '',
159  'description' => 'The pass through variable name of Address 3',
160  ),
161  'addr4_var_name' => Array(
162  'added' => '0.1',
163  'type' => 'text',
164  'default' => '',
165  'description' => 'The pass through variable name of Address 4',
166  ),
167  'postcode_var_name' => Array(
168  'added' => '0.1',
169  'type' => 'text',
170  'default' => '',
171  'description' => 'The pass through variable name of Postcode',
172  ),
173  'submit_text' => Array(
174  'added' => '0.1',
175  'type' => 'text',
176  'default' => ' Pay ',
177  'description' => 'Submit button text',
178  'is_contextable' => TRUE,
179  ),
180  'reset_text' => Array(
181  'added' => '0.1',
182  'type' => 'text',
183  'default' => 'Reset',
184  'description' => 'Reset button text',
185  'is_contextable' => TRUE,
186  ),
187  'cancel_text' => Array(
188  'added' => '0.1',
189  'type' => 'text',
190  'default' => 'Cancel',
191  'description' => 'Cancel button text',
192  'is_contextable' => TRUE,
193  ),
194  'test_mode' => Array(
195  'added' => '0.1',
196  'type' => 'boolean',
197  'default' => FALSE,
198  'description' => 'Turn this ON for test mode',
199  'parameters' => Array(
200  'allow_empty' => FALSE,
201  ),
202  ),
203  );
204 
205  }//end constructor
206 
207 
214  function _getFileList()
215  {
216  return Array(
217  'files/loader.js',
218  'files/loader.gif',
219  );
220 
221  }//end _getFileList()
222 
223 
230  function getEventList()
231  {
232  return Array(
233  Array(
234  'event_name' => 'requestKeywords',
235  'broadcast_type_code' => 'content_type',
236  'broadcast_strict_type_code' => FALSE,
237  'options' => Array(
238  'side_of_link' => 'major',
239  'indirect' => TRUE,
240  'is_exclusive' => NULL,
241  'is_dependant' => 1,
242  'value' => '',
243  'link_type' => SQ_LINK_TYPE_2,
244  ),
245  ),
246  );
247 
248  }//end getEventList()
249 
250 
251 }//end class
252 
253 ?>