Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
payment_gateway_dps_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 DPS 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 DPS Account used for the e-commerce transaction',
52  ),
53 
54  'currency' => Array(
55  'added' => '0.1',
56  'type' => 'selection',
57  'default' => 'GBP',
58  'description' => 'The currency used in all the e-commerce transactions. If blank, currency will be determined by the bank account used which is selected using the Username/Password details',
59  'parameters' => Array(
60  'multiple' => FALSE,
61  'allow_empty' => TRUE,
62  'options' => Array(
63  'CAD' => 'CAD',
64  'CHF' => 'CHF',
65  'EUR' => 'EUR',
66  'FRF' => 'FRF',
67  'GBP' => 'GBP',
68  'HKD' => 'HKD',
69  'JPY' => 'JPY',
70  'NZD' => 'NZD',
71  'SGD' => 'SGD',
72  'USD' => 'USD',
73  'ZAR' => 'ZAR',
74  'AUD' => 'AUD',
75  'WST' => 'WST',
76  'VUV' => 'VUV',
77  'TOP' => 'TOP',
78  'SBD' => 'SBD',
79  'PGK' => 'PGK',
80  'MYR' => 'MYR',
81  'WST' => 'WST',
82  'KWD' => 'KWD',
83  'FJD' => 'FJD',
84  ),
85  ),
86  ),
87 
88  'purchase_desc' => Array(
89  'added' => '0.1',
90  'type' => 'text',
91  'default' => 'The total amount',
92  'description' => 'A short description of what has been purchased. This is shown to the card holder by the ACS',
93  ),
94 
95  'avs_standard_policy' => Array(
96  'added' => '0.1',
97  'type' => 'selection',
98  'default' => '0',
99  'description' => 'Address Verification System property',
100  'parameters' => Array(
101  'multiple' => FALSE,
102  'allow_empty' => FALSE,
103  'options' => Array(
104  '0' => 'No',
105  '1' => 'Attempt AVS check',
106  '2' => 'The transactions needs to be checked by AVS',
107  ),
108  ),
109  ),
110  'cv2_standard_policy' => Array(
111  'added' => '0.1',
112  'type' => 'selection',
113  'default' => '0',
114  'description' => 'Card Verification Code 2 check',
115  'parameters' => Array(
116  'multiple' => FALSE,
117  'allow_empty' => FALSE,
118  'options' => Array(
119  '0' => 'No',
120  '1' => 'Attempt CV2 check',
121  ),
122  ),
123  ),
124  'addr1_var_name' => Array(
125  'added' => '0.1',
126  'type' => 'text',
127  'default' => '',
128  'description' => 'The pass through variable name of Address 1',
129  ),
130  'addr2_var_name' => Array(
131  'added' => '0.1',
132  'type' => 'text',
133  'default' => '',
134  'description' => 'The pass through variable name of Address 2',
135  ),
136  'addr3_var_name' => Array(
137  'added' => '0.1',
138  'type' => 'text',
139  'default' => '',
140  'description' => 'The pass through variable name of Address 3',
141  ),
142  'addr4_var_name' => Array(
143  'added' => '0.1',
144  'type' => 'text',
145  'default' => '',
146  'description' => 'The pass through variable name of Address 4',
147  ),
148  'postcode_var_name' => Array(
149  'added' => '0.1',
150  'type' => 'text',
151  'default' => '',
152  'description' => 'The pass through variable name of Postcode',
153  ),
154  'submit_text' => Array(
155  'added' => '0.1',
156  'type' => 'text',
157  'default' => ' Pay ',
158  'description' => 'Submit button text',
159  'is_contextable' => TRUE,
160  ),
161  'reset_text' => Array(
162  'added' => '0.1',
163  'type' => 'text',
164  'default' => 'Reset',
165  'description' => 'Reset button text',
166  'is_contextable' => TRUE,
167  ),
168  'cancel_text' => Array(
169  'added' => '0.1',
170  'type' => 'text',
171  'default' => 'Cancel',
172  'description' => 'Cancel button text',
173  'is_contextable' => TRUE,
174  ),
175  'amount_not_specified_error' => Array(
176  'added' => '0.1',
177  'type' => 'text',
178  'default' => 'No amount is specified for the payment',
179  'description' => 'Amount Not Specified Error',
180  'is_contextable' => TRUE,
181  ),
182  'card_number_not_specified_error' => Array(
183  'added' => '0.1',
184  'type' => 'text',
185  'default' => 'No card number is specified for the payment',
186  'description' => 'Card Number Not Specified Error',
187  'is_contextable' => TRUE,
188  ),
189  'expiry_date_invalid_error' => Array(
190  'added' => '0.1',
191  'type' => 'text',
192  'default' => 'The expiry date (MM/YY) is not valid',
193  'description' => 'Expiry Date Invalid Error',
194  'is_contextable' => TRUE,
195  ),
196  'start_date_invalid_error' => Array(
197  'added' => '0.1',
198  'type' => 'text',
199  'default' => 'The start date (MM/YY) is not valid',
200  'description' => 'Start Date Invalid Error',
201  'is_contextable' => TRUE,
202  ),
203  'issue_number_invalid_error' => Array(
204  'added' => '0.1',
205  'type' => 'text',
206  'default' => 'The issue number is invalid (must be one or two digits long)',
207  'description' => 'Issue Number Invalid Error',
208  'is_contextable' => TRUE,
209  ),
210  'card_cv2_not_specified_error' => Array(
211  'added' => '0.1',
212  'type' => 'text',
213  'default' => 'No CV2 is specified for the card',
214  'description' => '>Card Cv2 Not Specified Error',
215  'is_contextable' => TRUE,
216  ),
217  'card_cv2_invalid_error' => Array(
218  'added' => '0.1',
219  'type' => 'text',
220  'default' => 'The card CV2 is invalid (must be three or four (only American Express Card) digits long)',
221  'description' => 'Card Cv2 Invalid Error',
222  'is_contextable' => TRUE,
223  ),
224  'street_address_not_specified_error' => Array(
225  'added' => '0.1',
226  'type' => 'text',
227  'default' => 'The address is not specified',
228  'description' => 'Street Address Not Specified Error',
229  'is_contextable' => TRUE,
230  ),
231  'postcode_not_specified_error' => Array(
232  'added' => '0.1',
233  'type' => 'text',
234  'default' => 'No postcode is specified',
235  'description' => 'Postcode Not Specified Error',
236  'is_contextable' => TRUE,
237  ),
238  'test_mode' => Array(
239  'added' => '0.1',
240  'type' => 'boolean',
241  'default' => TRUE,
242  'description' => 'Turn this ON for test mode',
243  'parameters' => Array(
244  'allow_empty' => FALSE,
245  ),
246  ),
247  );
248 
249  }//end constructor
250 
251 
258  function _getFileList()
259  {
260  return Array(
261  'files/loader.js',
262  'files/loader.gif',
263  );
264 
265  }//end _getFileList()
266 
267 
274  function getEventList()
275  {
276  return Array(
277  Array(
278  'event_name' => 'requestKeywords',
279  'broadcast_type_code' => 'content_type',
280  'broadcast_strict_type_code' => FALSE,
281  'options' => Array(
282  'side_of_link' => 'major',
283  'indirect' => TRUE,
284  'is_exclusive' => NULL,
285  'is_dependant' => 1,
286  'value' => '',
287  'link_type' => SQ_LINK_TYPE_2,
288  ),
289  ),
290  );
291 
292  }//end getEventList()
293 
294 
295 }//end class
296 
297 ?>