00001 /* 00002 paymentEnumerations.h 00003 00004 2005 by davidmc@w3sys.com 00005 00006 +----+--------------+----------------+------------+----------------+--------------------+--------------+----------+--------------------------------------------------------------------------------------+ 00007 | Id | Service_Type | Value_Location | Param_Type | Interface_Type | Name | Machine_Name | Value | Instructions | 00008 +----+--------------+----------------+------------+----------------+--------------------+--------------+----------+--------------------------------------------------------------------------------------+ 00009 | 1 | 1 | 1 | 2 | 0 | action | action | preauth | Pre-authorization action | 00010 | 2 | 1 | 1 | 3 | 0 | action | action | postauth | Post-authorization action | 00011 | 3 | 1 | 1 | 4 | 0 | action | action | credit | Credit after sale (or preauth/postauth pair) | 00012 | 4 | 1 | 1 | 0 | 0 | Payment Media | media | cc | For all credit card and debit card transactions | 00013 | 5 | 1 | 1 | 0 | 0 | Test | demo | y | This is used to test the system - remove when live | 00014 | 6 | 1 | 2 | 2 | 1 | Name | name | | Please Enter your name as it appears on the card | 00015 | 7 | 1 | 2 | 2 | 2 | Credit Card Number | cc | | Please enter your card number | 00016 | 8 | 1 | 2 | 2 | 3 | Expiration Date | exp | | Please enter the expiration date in the form 'MMYY' example: '1006' for October 2006 | 00017 | 9 | 1 | 3 | 2 | 0 | Order ID | ticket | | Refers back to the artisan group and our unique internal id of the order | 00018 | 10 | 1 | 5 | 2 | 0 | Amount | amount | | Amount of purchase | 00019 | 11 | 1 | 4 | 3 | 0 | Transaction ID | transid | | Transaction ID from pre-authorization | 00020 | 12 | 1 | 4 | 4 | 0 | Transaction ID | transid | | Transaction ID from sale to be reversed | 00021 +----+--------------+----------------+------------+----------------+--------------------+--------------+----------+--------------------------------------------------------------------------------------+ 00022 00023 00024 */ 00025 enum param_val_location 00026 { 00027 pml_parm = 1, // parms of the system itself, requires no user setup 00028 pml_user_parm = 2, // requires user setup 00029 pml_dynamic_order_id = 3, // system generated, order id 00030 pml_dynamic_tran_id = 4, // system generated transaction id 00031 pml_dynamic_amount = 5 // system calculated amount 00032 }; 00033 00034 enum param_types 00035 { 00036 pt_all = 0, // all transactions 00037 pt_pay = 1, // pay specific parameter 00038 pt_preauthorize = 2, // pre-authorize specific parameter 00039 pt_postauthorize = 3, // post-authorize specific parameter 00040 pt_reverse = 4 // reversal specific (credit after sale) 00041 }; 00042 00043 enum interface_type 00044 { 00045 ui_none = 0, 00046 ui_text = 1, 00047 ui_cc_number = 2, 00048 ui_cc_exp = 3, 00049 ui_cvs = 4, // NEW for card verification system, 3 digit pin 00050 ui_addr_verification = 5 // NEW, the application logic should by default, populate these with the user address. MAP: param_names user table fields. 00051 }; 00052 00053 // for combos... 00054 const char * pay_val_location[] = 00055 { 00056 "none - please choose", // 00057 "sys parm", // parms of the system itself, requires no user setup 00058 "user parm", // requires user setup 00059 "dynamic order id", // system generated, order id 00060 "dynamic transaction id", // system generated transaction id 00061 "dynamic amount" // system calculated amount 00062 }; 00063 00064 const char * pay_types [] = 00065 { 00066 "all", // all transactions 00067 "pay", // pay specific parameter 00068 "preauthorize", // pre-authorize specific parameter 00069 "postauthorize", // post-authorize specific parameter 00070 "reverse" // reversal specific (credit after sale) 00071 }; 00072 00073 const char * pay_interface_type [] = 00074 { 00075 "none", 00076 "text", 00077 "cc number", 00078 "cc expires", 00079 "cvs", // NEW for card verification system, 3 digit pin 00080 "address verification" // NEW, the application logic should by default, populate these with the user address. MAP: param_names user table fields. 00081 }; 00082 00083 const size_t pay_loc_count=6; 00084 const size_t pay_type_count=5; 00085 const size_t pay_iface_count=6;
1.5.5