rename our internal VERSION sub to avoid conflict with Perl's needs (thanks to ETHER...
[Business-OnlinePayment-PPIPayMover.git] / lib / Business / OnlinePayment / PPIPayMover / constants.pm
1 package Business::OnlinePayment::PPIPayMover::constants;\r
2 \r
3 use strict;\r
4 use vars qw(@ISA @EXPORT);\r
5 use Exporter;\r
6 \r
7 @ISA = qw(Exporter);\r
8 \r
9 @EXPORT = qw(PPI_VERSION\r
10   PAY_HOST\r
11   PAY_HOST_PATH\r
12   PAY_HOST_PORT\r
13   SUCCESSFUL_TRANSACTION\r
14   MISSING_REQUIRED_REQUEST_FIELD\r
15   INVALID_REQUEST_FIELD\r
16   ILLEGAL_TRANSACTION_REQUEST\r
17   TRANSACTION_SERVER_ERROR\r
18   TRANSACTION_NOT_POSSIBLE\r
19   INVALID_VERSION\r
20   CREDIT_CARD_DECLINED\r
21   ACQUIRER_GATEWAY_ERROR\r
22   PAYMENT_ENGINE_ERROR\r
23   SALE\r
24   AUTH\r
25   FORCE_SALE\r
26   FORCE_AUTH\r
27   ADJUSTMENT\r
28   QUERY_PAYMENT\r
29   QUERY_CREDIT\r
30   CAPTURE\r
31   VOID\r
32   CREDIT\r
33   CREATE_ORDER\r
34   CLOSE_ORDER\r
35   CANCEL_ORDER\r
36   VOID_AUTH\r
37   VOID_CAPTURE\r
38   VOID_CREDIT\r
39   SETTLE_ACTION\r
40   PURGE_ACTION\r
41   TOTALS_ACTION\r
42   VISA\r
43   MASTERCARD\r
44   AMERICAN_EXPRESS\r
45   DISCOVER\r
46   NOVA\r
47   AMEX\r
48   DINERS\r
49   EUROCARD\r
50   CARD_BRAND_1\r
51   CARD_BRAND_2\r
52   CARD_BRAND_3\r
53   CARD_BRAND_4\r
54   CARD_BRAND_5\r
55   CARD_BRAND_6\r
56   TR_ERROR\r
57   TR_NO_ERROR\r
58   CCR_ERROR\r
59   CCR_NO_ERROR\r
60   BR_ERROR\r
61   BR_NO_ERROR\r
62   ISR_ERROR\r
63   ISR_NO_ERROR\r
64   ECLIENT_ERROR\r
65   ECLIENT_NO_ERROR\r
66   HTTP_POST_RESULT_NOTIFICATION_STRING\r
67   EMAIL_RESULT_NOTIFICATION_STRING\r
68   NO_RESULT_NOTIFICATION_STRING\r
69   EMAIL_RESULT_NOTIFICATION\r
70   HTTP_POST_RESULT_NOTIFICATION\r
71   NO_RESULT_NOTIFICATION\r
72   TCC_DEFAULT\r
73   TCC_CARDHOLDER_NOT_PRESENT_MAIL_FAX_ORDER\r
74   TCC_CARDHOLDER_NOT_PRESENT_TELEPHONE_ORDER\r
75   TCC_CARDHOLDER_NOT_PRESENT_INSTALLMENT\r
76   TCC_CARDHOLDER_NOT_PRESENT_PAYER_AUTHENTICATION\r
77   TCC_CARDHOLDER_NOT_PRESENT_SECURE_ECOMMERCE\r
78   TCC_CARDHOLDER_NOT_PRESENT_RECURRING_BILLING\r
79   TCC_CARDHOLDER_PRESENT_RETAIL_ORDER \r
80   TCC_CARDHOLDER_PRESENT_RETAIL_ORDER_WITHOUT_SIGNATURE\r
81   TCC_CARDHOLDER_PRESENT_RETAIL_ORDER_KEYED\r
82   TCC_CARDHOLDER_NOT_PRESENT_PAYER_AUTHENTICATION_ATTEMPTED\r
83   PERIOD_WEEKLY\r
84   PERIOD_BIWEEKLY\r
85   PERIOD_SEMIMONTHLY\r
86   PERIOD_MONTHLY\r
87   PERIOD_QUARTERLY\r
88   PERIOD_ANNUAL\r
89   COMMAND_ADD_CUSTOMER_ACCOUNT_ONLY\r
90   COMMAND_ADD_RECURRENCE_ONLY\r
91   COMMAND_ADD_CUSTOMER_ACCOUNT_AND_RECURRENCE\r
92   ACCOUNT_TYPE_CREDIT_CARD\r
93   STATUS_ENROLLED\r
94   STATUS_NOT_ENROLLED\r
95   STATUS_ENROLLED_BUT_AUTHENTICATION_UNAVAILABLE\r
96   AUTHENTICATION_PREFIX\r
97   CHECKING\r
98   SAVINGS\r
99   PERSONAL\r
100   CORPORATE\r
101   DIRECT_MARKETING\r
102   RETAIL\r
103   LODGING\r
104   RESTAURANT  \r
105   CHECK\r
106   OVERRIDE\r
107   NO_CHECK\r
108 );\r
109 \r
110 sub PPI_VERSION { "Perl Plug v1.8.0" }\r
111 \r
112 #**\r
113 # * Payment Host Information\r
114 #\r
115 \r
116 sub PAY_HOST { "etrans.paygateway.com" }\r
117 sub PAY_HOST_PATH { "/TransactionManager" }\r
118 sub PAY_HOST_PORT { 443 }\r
119 \r
120 \r
121 #**\r
122 # * Response code indicating the transaction was successfully processed.\r
123 #\r
124 sub SUCCESSFUL_TRANSACTION { 1 }\r
125 \r
126 #**\r
127 # * Response code indicating that a required request field was not provided\r
128 # * with the request.  The required field will be identifed in the response\r
129 # * code text returned from getResponseCodeText().  The field identified will\r
130 # * be defined by a subclass of TransactionRequest.\r
131 #\r
132 sub MISSING_REQUIRED_REQUEST_FIELD { 2 }\r
133 \r
134 #*\r
135 # * Response code indicating that the value provided to a subclass of\r
136 # * TrasactionRequest for a transaction field was not valid.  The resonse\r
137 # * code text returned from getResponseCodeText() will identify the\r
138 # * problem and the field.\r
139 # *\r
140 sub INVALID_REQUEST_FIELD { 3 }\r
141 \r
142 #*\r
143 # * Response code indicating the transaction request was illegal.  This\r
144 # * can happen if a transaction is sent for an account that does not\r
145 # * exist or if the account has not been configured to perform the\r
146 # * requested transaction type.\r
147 #\r
148 sub ILLEGAL_TRANSACTION_REQUEST { 4 }\r
149 \r
150 #*\r
151 # * Response code indicating that an error occured within the transaction\r
152 # * server.  The transaction server is where this Java Transaction Client API\r
153 # * connects and sends transaction data for further processing.  This type\r
154 # * of error is temporary.  If one occurs maintenance staff are immediately\r
155 # * signaled to correct the problem.\r
156 #\r
157 sub TRANSACTION_SERVER_ERROR { 5 }\r
158 \r
159 #**\r
160 # * Response code indicating that the requested transaction is not possible.\r
161 # * This can happen if the transaction request refers to a previous transaction\r
162 # * that does not exist.  For example, when using the CreditCardRequest and\r
163 # * CreditCardResponse classes one possible request is to perform a capture of\r
164 # * funds previously authorized from a customers credit card.  If a capture\r
165 # * request is sent that refers to an authorization that does not exist then\r
166 # * this response code will be returned.\r
167 #\r
168 sub TRANSACTION_NOT_POSSIBLE  { 6 }\r
169 \r
170 #**\r
171 # * Response code indicating that the version of the Java Transaction Client API\r
172 #* being used is no longer valid.\r
173 #\r
174 sub INVALID_VERSION { 7 }\r
175 \r
176 #**\r
177 # * Response code indicating that the credit card transaction was declined.\r
178 # *\r
179 sub CREDIT_CARD_DECLINED { 100 }\r
180 \r
181 #**\r
182 # * Response code indicating that the Acquirer Gateway encountered an\r
183 # * error.  This is a software program that handles credit card transactions.\r
184 # * It accepts connections over the internet and communicates with the\r
185 # * private banking network.\r
186 # *\r
187 sub ACQUIRER_GATEWAY_ERROR { 101 }\r
188 \r
189 #**\r
190 # * Response code indicating that the Payment Engine encountered an\r
191 # * error.  This is a software program that makes connections to an\r
192 # * Aquirer Gateway.\r
193 #\r
194 sub PAYMENT_ENGINE_ERROR { 102 }\r
195 \r
196 #/////////////////////////////////////////////////////////////////////////////////////////////////////\r
197 #// Constants that are permissible values for chargeBrand.\r
198 #\r
199 \r
200 #**\r
201 # * One of ten permissible values of the parameter of the setChargeType() method.\r
202 # * May also be used as the chargeType parameter in the CreditCardRequest constructor.\r
203 # * Indicates that the type of operation being done is a sale\r
204 # * (both an authorization and a capture).\r
205 # * <p>\r
206 # * Other permissible values for setChargeType() are ADJUSTMENT, AUTH, CAPTURE, CREDIT, FORCE_AUTH, FORCE_SALE, QUERY_CREDIT, QUERY_PAYMENT or VOID.\r
207 # * <p>\r
208 # * @see com.paygateway.CreditCardRequest#getChargeType\r
209 # * @see com.paygateway.CreditCardRequest#setChargeType\r
210 # */\r
211 sub SALE { "SALE" }\r
212 \r
213 #**\r
214 # * Additional Charge Type\r
215 # * <p>\r
216 # * See above for other permissible values for setChargeType().\r
217 # * <p>\r
218 # * @see com.paygateway.CreditCardRequest#getChargeType\r
219 # * @see com.paygateway.CreditCardRequest#setChargeType\r
220 # *\r
221 sub AUTH { "AUTH" }\r
222 \r
223 #**\r
224 # * Additional Charge Type\r
225 # * <p>\r
226 # * See above for other permissible values for setChargeType().\r
227 # * <p>\r
228 # * @see com.paygateway.CreditCardRequest#getChargeType\r
229 # * @see com.paygateway.CreditCardRequest#setChargeType\r
230 # *\r
231 sub CAPTURE { "CAPTURE" }\r
232 \r
233 #**\r
234 # * Additional Charge Type\r
235 # * <p>\r
236 # * See above for other permissible values for setChargeType().\r
237 # * <p>\r
238 # * @see com.paygateway.CreditCardRequest#getChargeType\r
239 # * @see com.paygateway.CreditCardRequest#setChargeType\r
240 # *\r
241 sub VOID { "VOID" }\r
242 \r
243 #**\r
244 # * Additional Charge Type\r
245 # * <p>\r
246 # * See above for other permissible values for setChargeType().\r
247 # * <p>\r
248 # * @see com.paygateway.CreditCardRequest#getChargeType\r
249 # * @see com.paygateway.CreditCardRequest#setChargeType\r
250 # *\r
251 sub CREDIT { "CREDIT" }\r
252 \r
253 #**\r
254 # * Additional Charge Type\r
255 # * <p>\r
256 # * See above for other permissible values for setChargeType().\r
257 # * <p>\r
258 # * @see com.paygateway.CreditCardRequest#getChargeType\r
259 # * @see com.paygateway.CreditCardRequest#setChargeType\r
260 # *\r
261 sub FORCE_AUTH { "FORCE_AUTH" }\r
262 \r
263 #**\r
264 # * Additional Charge Type\r
265 # * <p>\r
266 # * See above for other permissible values for setChargeType().\r
267 # * <p>\r
268 # * @see com.paygateway.CreditCardRequest#getChargeType\r
269 # * @see com.paygateway.CreditCardRequest#setChargeType\r
270 # *\r
271 sub FORCE_SALE { "FORCE_SALE" }\r
272 \r
273 #**\r
274 # * Additional Charge Type\r
275 # * <p>\r
276 # * See above for other permissible values for setChargeType().\r
277 # * <p>\r
278 # * @see com.paygateway.CreditCardRequest#getChargeType\r
279 # * @see com.paygateway.CreditCardRequest#setChargeType\r
280 # *\r
281 sub QUERY_PAYMENT { "QUERY_PAYMENT" }\r
282 \r
283 #**\r
284 # * Additional Charge Type\r
285 # * <p>\r
286 # * See above for other permissible values for setChargeType().\r
287 # * <p>\r
288 # * @see com.paygateway.CreditCardRequest#getChargeType\r
289 # * @see com.paygateway.CreditCardRequest#setChargeType\r
290 # *\r
291 sub QUERY_CREDIT { "QUERY_CREDIT" }\r
292 \r
293 #**\r
294 # * Additional Charge Type\r
295 # * <p>\r
296 # * See above for other permissible values for setChargeType().\r
297 # * <p>\r
298 # * @see com.paygateway.CreditCardRequest#getChargeType\r
299 # * @see com.paygateway.CreditCardRequest#setChargeType\r
300 # *\r
301 sub ADJUSTMENT { "ADJUSTMENT" }\r
302 \r
303 \r
304 \r
305 \r
306 \r
307 # new charge types for BatchRequest\r
308 # added in v1.6\r
309 sub SETTLE_ACTION { "SETTLE" }\r
310 sub PURGE_ACTION { "PURGE" }\r
311 sub TOTALS_ACTION { "TOTALS" }\r
312 \r
313 # new charge types for ibm pm\r
314 # added in v1.6\r
315 sub CLOSE_ORDER { "CLOSE_ORDER" }\r
316 sub CANCEL_ORDER { "CANCEL_ORDER" }\r
317 sub CREATE_ORDER { "CREATE_ORDER" }\r
318 sub VOID_AUTH { "VOID_AUTH" }\r
319 sub VOID_CAPTURE { "VOID_CAPTURE" }\r
320 sub VOID_CREDIT { "VOID_CREDIT" }\r
321 \r
322 #/////////////////////////////////////////////////////////////////////////////////////////////////////\r
323 #// Permissible values for cardBrand.\r
324 \r
325 #\r
326 # * One permissible value for the parameter of the setCardBrand() method.\r
327 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
328 # <p>\r
329 # Other permissible values are\r
330 # MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
331 # as well as generic values (to support future card types)\r
332 # CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
333 # <p>\r
334 # @see com.paygateway.CreditCardRequest#getCardBrand\r
335 # @see com.paygateway.CreditCardRequest#setCardBrand\r
336 #*/\r
337 sub VISA {  "VISA" }\r
338 \r
339 #**\r
340 # * One permissible value for the parameter of the setCardBrand() method.\r
341 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
342 # <p>\r
343 # Other permissible values are\r
344 # VISA, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
345 # as well as generic values (to support future card types)\r
346 # CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
347 # <p>\r
348 # @see com.paygateway.CreditCardRequest#getCardBrand\r
349 # @see com.paygateway.CreditCardRequest#setCardBrand\r
350 #\r
351 sub MASTERCARD  { "MASTERCARD" }\r
352 \r
353 #**\r
354 # * One permissible value for the parameter of the setCardBrand() method.\r
355 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
356 # * <p>\r
357 # * Other permissible values are\r
358 # * VISA, MASTERCARD, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
359 # * as well as generic values (to support future card types)\r
360 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
361 # * <p>\r
362 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
363 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
364 # */\r
365 sub AMERICAN_EXPRESS { "AMERICAN_EXPRESS" }\r
366 \r
367 #/**\r
368 # * One permissible value for the parameter of the setCardBrand() method.\r
369 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
370 # * <p>\r
371 # * Other permissible values are\r
372 # * VISA, MASTERCARD, AMERICAN_EXPRESS, NOVA, AMEX, DINERS, or EUROCARD,\r
373 # * as well as generic values (to support future card types)\r
374 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
375 # * <p>\r
376 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
377 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
378 # */\r
379 sub DISCOVER  { "DISCOVER" }\r
380 \r
381 #**\r
382 # * One permissible value for the parameter of the setCardBrand() method.\r
383 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
384 # * <p>\r
385 # * Other permissible values are\r
386 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, AMEX, DINERS, or EUROCARD,\r
387 # * as well as generic values (to support future card types)\r
388 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
389 # * <p>\r
390 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
391 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
392 # */\r
393 sub NOVA { "NOVA" }\r
394 \r
395 #**\r
396 # * One permissible value for the parameter of the setCardBrand() method.\r
397 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
398 # * <p>\r
399 # * Other permissible values are\r
400 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, DINERS, or EUROCARD,\r
401 # * as well as generic values (to support future card types)\r
402 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
403 # * <p>\r
404 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
405 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
406 # */\r
407 sub AMEX { "AMEX" }\r
408 \r
409 #*\r
410 # * One permissible value for the parameter of the setCardBrand() method.\r
411 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
412 # * <p>\r
413 # * Other permissible values are\r
414 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, or EUROCARD,\r
415 # * as well as generic values (to support future card types)\r
416 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
417 # * <p>\r
418 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
419 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
420 # */\r
421 sub DINERS {  "DINERS" }\r
422 \r
423 #*\r
424 # * One permissible value for the parameter of the setCardBrand() method.\r
425 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
426 # * <p>\r
427 # * Other permissible values are\r
428 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, or DINERS,\r
429 # * as well as generic values (to support future card types)\r
430 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
431 # * <p>\r
432 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
433 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
434 # */\r
435 sub EUROCARD  { "EUROCARD" }\r
436 \r
437 #**\r
438 # * One permissible value for the parameter of the setCardBrand() method.\r
439 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
440 # * <p>\r
441 # * Other permissible values are\r
442 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
443 # * as well as generic values (to support future card types)\r
444 # * CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
445 # * <p>\r
446 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
447 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
448 # */\r
449 sub CARD_BRAND_1 { "CARD_BRAND_1" }\r
450 \r
451 \r
452 #**\r
453 # * One permissible value for the parameter of the setCardBrand() method.\r
454 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
455 # * <p>\r
456 # * Other permissible values are\r
457 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
458 # * as well as generic values (to support future card types)\r
459 # * CARD_BRAND_1, CARD_BRAND_3, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
460 # * <p>\r
461 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
462 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
463 # */\r
464 sub CARD_BRAND_2  { "CARD_BRAND_2" }\r
465 \r
466 #**\r
467 # * One permissible value for the parameter of the setCardBrand() method.\r
468 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
469 # * <p>\r
470 # * Other permissible values are\r
471 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
472 # * as well as generic values (to support future card types)\r
473 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_4, CARD_BRAND_5, or CARD_BRAND_6.\r
474 # * <p>\r
475 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
476 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
477 # */\r
478 sub CARD_BRAND_3  { "CARD_BRAND_3" }\r
479 \r
480 #**\r
481 # * One permissible value for the parameter of the setCardBrand() method.\r
482 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
483 # * <p>\r
484 # * Other permissible values are\r
485 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
486 # * as well as generic values (to support future card types)\r
487 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_5, or CARD_BRAND_6.\r
488 # * <p>\r
489 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
490 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
491 # */\r
492 sub CARD_BRAND_4 {  "CARD_BRAND_4" }\r
493 \r
494 #**\r
495 # * One permissible value for the parameter of the setCardBrand() method.\r
496 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
497 # * <p>\r
498 # * Other permissible values are\r
499 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
500 # * as well as generic values (to support future card types)\r
501 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, or CARD_BRAND_6.\r
502 # * <p>\r
503 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
504 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
505 # */\r
506 sub CARD_BRAND_5 {  "CARD_BRAND_5" }\r
507 \r
508 #**\r
509 # * One permissible value for the parameter of the setCardBrand() method.\r
510 # * May also be used as the cardBrand parameter in the CreditCardRequest constructor.\r
511 # * <p>\r
512 # * Other permissible values are\r
513 # * VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, NOVA, AMEX, DINERS, or EUROCARD,\r
514 # * as well as generic values (to support future card types)\r
515 # * CARD_BRAND_1, CARD_BRAND_2, CARD_BRAND_3, CARD_BRAND_4, or CARD_BRAND_5.\r
516 # * <p>\r
517 # * @see com.paygateway.CreditCardRequest#getCardBrand\r
518 # * @see com.paygateway.CreditCardRequest#setCardBrand\r
519 # */\r
520 sub CARD_BRAND_6 {  "CARD_BRAND_6" }\r
521 \r
522 # Transaction Condition code values (CreditCardRequest)\r
523 sub TCC_DEFAULT                                                 { 0 }\r
524 sub TCC_CARDHOLDER_NOT_PRESENT_MAIL_FAX_ORDER                   { 1 }\r
525 sub TCC_CARDHOLDER_NOT_PRESENT_TELEPHONE_ORDER                  { 2 }\r
526 sub TCC_CARDHOLDER_NOT_PRESENT_INSTALLMENT                      { 3 }\r
527 sub TCC_CARDHOLDER_NOT_PRESENT_PAYER_AUTHENTICATION             { 4 }\r
528 sub TCC_CARDHOLDER_NOT_PRESENT_SECURE_ECOMMERCE                 { 5 }\r
529 sub TCC_CARDHOLDER_NOT_PRESENT_RECURRING_BILLING                { 6 }\r
530 sub TCC_CARDHOLDER_PRESENT_RETAIL_ORDER                         { 7 }\r
531 sub TCC_CARDHOLDER_PRESENT_RETAIL_ORDER_WITHOUT_SIGNATURE       { 8 }\r
532 sub TCC_CARDHOLDER_PRESENT_RETAIL_ORDER_KEYED                   { 9 }\r
533 sub TCC_CARDHOLDER_NOT_PRESENT_PAYER_AUTHENTICATION_ATTEMPTED   { 10 }\r
534 \r
535 ################################\r
536 # Special Credit Card constants\r
537 #\r
538 # Duplicate Check\r
539 #no, conflicts with perl# sub CHECK { "CHECK" }\r
540 sub OVERRIDE { "OVERRIDE" }\r
541 sub NO_CHECK { "NO_CHECK" }\r
542 \r
543 \r
544 ################################\r
545 # Recurring billing constants\r
546 #\r
547 # Period\r
548 sub PERIOD_WEEKLY       { 1 }\r
549 sub PERIOD_BIWEEKLY     { 2 }\r
550 sub PERIOD_SEMIMONTHLY  { 3 }\r
551 sub PERIOD_MONTHLY      { 4 }\r
552 sub PERIOD_QUARTERLY    { 5 }\r
553 sub PERIOD_ANNUAL       { 6 }\r
554 \r
555 # Command\r
556 sub COMMAND_ADD_CUSTOMER_ACCOUNT_ONLY { "ADD_RECURRENCE" }\r
557 sub COMMAND_ADD_RECURRENCE_ONLY { "ADD_RECURRENCE" }\r
558 sub COMMAND_ADD_CUSTOMER_ACCOUNT_AND_RECURRENCE { "ADD_CUSTOMER_AND_RECURRENCE" }\r
559 \r
560 # Account Type\r
561 sub ACCOUNT_TYPE_CREDIT_CARD { "CREDIT_CARD" }\r
562 \r
563 # TransactionResponse error definitions\r
564 sub TR_ERROR { 0 }\r
565 sub TR_NO_ERROR  { 1 }\r
566 \r
567 # CreditCardResponse error definitions\r
568 sub CCR_ERROR {  0 }\r
569 sub CCR_NO_ERROR {  1 }\r
570 \r
571 # BatchResponse error definitions\r
572 sub BR_ERROR { 0 }\r
573 sub BR_NO_ERROR { 1 }\r
574 \r
575 #InitSETResponse error definitions\r
576 sub ISR_ERROR {  0 }\r
577 sub ISR_NO_ERROR  { 1 }\r
578 \r
579 # EClient error definitions\r
580 sub ECLIENT_ERROR {  0 }\r
581 sub ECLIENT_NO_ERROR  { 1 }\r
582 \r
583 # ESETClient error definitions\r
584 sub ESETCLIENT_ERROR {  0 }\r
585 sub ESETCLIENT_NO_ERROR {  1 }\r
586 \r
587 \r
588 # CESETClient SET result notification constants\r
589 sub HTTP_POST_RESULT_NOTIFICATION_STRING { "HTTP_POST_RESULT_NOTIFICATION" }\r
590 sub EMAIL_RESULT_NOTIFICATION_STRING {  "EMAIL_RESULT_NOTIFICATION" }\r
591 sub NO_RESULT_NOTIFICATION_STRING  { "NO_RESULT_NOTIFICATION" }\r
592 \r
593 sub EMAIL_RESULT_NOTIFICATION {  1 }\r
594 sub HTTP_POST_RESULT_NOTIFICATION  { 2 }\r
595 sub NO_RESULT_NOTIFICATION {  3 }\r
596 \r
597 \r
598 ################################\r
599 # Payer Authentication constants\r
600 #\r
601 \r
602 # status\r
603 sub STATUS_ENROLLED { "Y" }\r
604 sub STATUS_NOT_ENROLLED { "N" }\r
605 sub STATUS_ENROLLED_BUT_AUTHENTICATION_UNAVAILABLE { "U" }\r
606 sub AUTHENTICATION_PREFIX {"authentication_"}\r
607 \r
608 \r
609 ################################\r
610 # ACH constants\r
611 #\r
612 \r
613 # Account Type\r
614 sub CHECKING { 1 }\r
615 sub SAVINGS  { 0 }\r
616 \r
617 # Account Class\r
618 sub PERSONAL  { 0 }\r
619 sub CORPORATE { 1 }\r
620 \r
621 ################################\r
622 # Industry type constants\r
623 #\r
624 \r
625 # Industry Type\r
626 sub DIRECT_MARKETING { "DIRECT_MARKETING" }\r
627 sub RETAIL { "RETAIL" }\r
628 sub LODGING { "LODGING" }\r
629 sub RESTAURANT { "RESTAURANT" }\r
630 \r
631 1;\r