Home
LCOM Manual (in edits)
Contents
1. HRESULT STDMETHODCALLTYPE csi_item_addoption in long item in long option HRESULT STDMETHODCALLTYPE csi_item_alloc retval out long __RPC_FAR item HRESULT STDMETHODCALLTYPE csi_item_clear in long item HRESULT STDMETHODCALLTYPE csi_item_drop in long item HRESULT STDMETHODCALLTYPE csi_item_error in long item retval out long _ RPC_FAR err HRESULT STDMETHODCALLTYPE csi_item_get in long item in long item_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_item_set in long item in long item_field in VARIANT field HRESULT STDMETHODCALLTYPE csi_option_alloc retval out long _ RPC_FAR option HRESULT STDMETHODCALLTYPE csi_option_clear in long option HRESULT STDMETHODCALLTYPE csi_option_drop in long option HRESULT STDMETHODCALLTYPE csi_option_error in long option retval out long RPC FAR err 2001 LinkPoint International Inc 3 LinkPoint COM Object LCOM User Manual Version 1 1 0501 HRESULT STDMETHODCALLTYPE csi option get in long option in long option field retval out VARIANT RPC FAR field HRESULT STDMETHODCALLTYPE csi option sett in long option in long option field in VARIANT field HRESULT STDMETHODCALLTYPE csi order additem in long o
2. Vdese esee ee e e eee ee e e eee ee de de eee ee de e eee e e de e eee ee e e e ee ee e e eee ee e e eee ee e e e ee ee e e e ee ee e e e ee eee eee Get Shipping and Handling fltShip orderform shipping total orderform handling total fltShip fltShip 100 00 Flag ApiDriver csi order set OrderCtx OrderField Shipping CDbl fltShip AAA He ke e e eee ee e e eee ee e e e ee ee e e eee ee e e eee ee e e eee ee de e eee ee e e eee ee e e eee ee e e eee ee e e eee eee eee Get Tax Vlesesesede KA KA dede dede eee eee dee e e dede de dede dee e KA KA KA e dede AA AA e e dede dee dede ee KA KA KA AA A ede dee dee ee AA AA A AA eee fltTax orderform tax total fltTax fltTax 100 00 Flag ApiDriver csi order set OrderCtx OrderField Tax CDbl fltTax LARA He Re eee e eee ee e e eee ee e e e ee ee e e e ee ee e e eee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee eee eee Calculate the ChargeTotal V esesesese eee eee dede e e e eee eee e e e eee eee e e KK KA KA e e e eee eee e e dee de dede dee e e ede dede eee e ede de ede eee e eee AA AA eee total subtotal fltTax fltShip Flag ApiDriver csi order set OrderCtx OrderField_Chargetotal CDbl total Vdese esee ee e e eee ee e e eee ee e e e ee e e e e eee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e eee eee eee Finally process the order through the CSI Gateway Vlesesesese KA KA KA dede e e e eee ee
3. VARIANT field HRESULT STDMETHODCALLTYPE csi_shipping_alloc retval out long RPC_FAR ship HRESULT STDMETHODCALLTYPE csi_shipping_clear in long ship HRESULT STDMETHODCALLTYPE csi_shipping_drop in long ship HRESULT STDMETHODCALLTYPE csi_shipping_error in long ship retval out long RPC FAR err HRESULT STDMETHODCALLTYPE csi_shipping_get in long ship in long ship_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_shipping_process in long ship HRESULT STDMETHODCALLTYPE csi_shipping_set in long ship in long ship_field in VARIANT field HRESULT STDMETHODCALLTYPE csi_shipping_setrequest in long ship in long req HRESULT STDMETHODCALLTYPE csi_tax_alloc retval out long __RPC_FAR tax HRESULT STDMETHODCALLTYPE csi_tax_clear in long tax HRESULT STDMETHODCALLTYPE csi_tax_drop in long tax 2001 LinkPoint International Inc 5 LinkPoint COM Object LCOM User Manual Version 1 1 0501 HRESULT STDMETHODCALLTYPE csi_tax_error in long tax retval out long _ RPC_FAR err HRESULT STDMETHODCALLTYPE csi_tax_get in long tax in long tax_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_tax_process in long tax HRESULT STDMETHODCALLTYPE c
4. 25 Const OrderField PONumber 26 Const OrderField_TaxExempt 27 Const OrderField_Oid 0 Const OrderField_MaxItems 28 Const OrderField_Email 29 Const OrderField_Cardnumber 30 Const OrderField_Expmonth 31 Const OrderField_Expyear 32 Const OrderField_Chargetype 33 Const OrderField_Chargetotal 34 Const OrderField_Referencenumber 35 Const OrderField_Result 36 Const OrderField_Addrnum 37 Const OrderField_Ip 38 Const OrderField_MercType 39 Const OrderField_SwitchStartDate 40 Const OrderField_SwitchIssueNumber 41 Responses Const OrderField R Time 42 Const OrderField R Ref 43 Const OrderField R Approved 44 Const OrderField_R_Code 45 Const OrderField_R_Ordernum 46 Const OrderField R Error 47 Const OrderField_R_FraudCode 48 Const OrderField_R_AuthResponse 49 Const OrderField R Message 50 RegField t Const ReqField Configfile 0 Const ReqField Keyfile 1 Const RegField_Appname 2 Const ReqField Host 3 Const ReqField Port 4 ItemField_t Const ItemField_Itemid 0 Const ItemField Description 1 Const ItemField Price 2 Const ItemField Quantity 3 Const ItemField Softfile 4 Const ItemField Esdtype 5 Const ItemField Serial 6 Const ItemField MaxOptions 7 2001 LinkPoint International Inc 17 LinkPoint COM Object LCOM User Manual Version 1 1 0501 ShippingField_t Const ShippingField_Country 0 Const ShippingField_State 1 Const ShippingF
5. AA a Re ee e e eee ee e e eee ee e e eee ee e e eee ee e e e ee ee de e e ee ee e e e ee ee e e eee ee e e e ee ee e e eee ee e e eee eee eee For each item in orderform items Flag ApiDriver csi item set ItemCtx ItemField Itemid CStr item SKU Flag ApiDriver csi item set ItemCtx ItemField Description CStr item product name itemprice item iadjust currentprice 100 0 Flag ApiDriver csi item set ItemCtx ItemField Price CDbl itemprice Flag ApiDriver csi item set ItemCtx ItemField Quantity CInt item Quantity TRA He Re esee e e ee ee e e eee ee e de e ee ee e e e ee e e e e e ee e ee de e ee e ee e e ee eee e e ee e ee e e ee e ee e e eee ee e e eee For T shirts get the attributes size and color Else it s a program Setup for a ESD SoftGood download Vlesesesese KA KA KA eee e e eee ee dee e e KK AA AA e e eee eee e ee eee deed e e dede dede e e KA KK dede e eee eee AA A eee eee If item SKU lt gt 555 Then Flag ApiDriver csi option set OptionCtx OptionField Option Color Flag ApiDriver csi option set OptionCtx OptionField Choice CStr item attr value2 Flag ApiDriver csi item addoption ItemCtx OptionCtx If ApiDriver bStat Succeed Then txtError txtError amp csi item addoption amp ApiDriver csi util errorstr ApiDriver csi item error OrderCtx orderform purchase errors Add txtError End If Flag ApiDriver csi option set OptionCtx OptionField Option Size Flag ApiDrive
6. Const OrderField_Expmonth 31 Const OrderField_Expyear 32 Const OrderField_Chargetype 33 2001 LinkPoint International Inc 52 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const OrderField_Chargetotal 34 Const OrderField_Referencenumber 35 Const OrderField_Result 36 Const OrderField_Addrnum 37 Const OrderField_Ip 38 Const OrderField_MercType 39 Const OrderField_SwitchStartDate 40 Const OrderField_SwitchIssueNumber 41 Responses Const OrderField_R_Time 42 Const OrderField R Ref 43 Const OrderField R Approved 44 Const OrderField_R_Code 45 Const OrderField_R_Ordernum 46 Const OrderField R Error 47 Const OrderField_R_FraudCode 48 Const OrderField R AuthResponse 49 Const OrderField R Message 50 RegField t Const RegField_Configfile 0 Const ReqField Keyfile 1 Const RegField_Appname 2 Const ReqField Host 3 Const ReqgField Port 4 temField t Const ItemField_Itemid 0 Const ItemField Description 1 Const ItemField Price 2 Const ItemField Quantity 3 Const ItemField Softfile 4 Const ItemField Esdtype 5 Const ItemField Serial 6 Const ItemField MaxOptions 7 ShippingField t Const ShippingField Country 0 Const ShippingField State 1 Const ShippingField Total 2 Const ShippingField Items 3 Const ShippingField Weight 4 Const ShippingField Carrier 5 Responses Const ShippingField R Total 6 TaxField t Const TaxFiel
7. Flag ApiDriver csi_order_set OrderCtx OrderField_Shipping shiptotal Flag ApiDriver csi_shipping_drop ShippingCtx price shiptotal subtotal Flag ApiDriver csi_tax_set TaxCtx TaxField_State CO Flag ApiDriver csi_tax_set TaxCtx TaxField_Zip 80219 Flag ApiDriver csi_tax_set TaxCtx TaxField_Total price Flag ApiDriver csi_tax_process TaxCtx if ApiDriver bStat lt gt Succeed Then txtError csi tax process ApiDriver csi util errorstr ApiDriver csi tax error TaxCtx txtArray Add txtError txtError 2001 LinkPoint International Inc 47 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Set ApiDriver nothing Exit Function End If taxtotal ApiDriver csi_tax_get TaxCtx TaxField_R_Total txtTax taxtotal Flag ApiDriver csi_order_set OrderCtx OrderField_Tax taxtotal Flag ApiDriver csi_tax_drop TaxCtx total subtotal taxtotal shiptotal Flag ApiDriver csi_order_set OrderCtx OrderField_Chargetotal total txtChargeTotal total Flag ApiDriver csi_checkorder_setorder CheckorderCtx OrderCtx If ApiDriver bStat lt gt Succeed Then txtError csi_checkorder_setorder ApiDriver csi util checkorder errorstr ApiDriver csi checkorder error CheckorderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi checkorder setcheck CheckorderCtx CheckCtx If ApiDriver bStat Succeed Then txtError csi checkord
8. ReqCtx ApiDriver csi req alloc ShippingCtx ApiDriver csi shipping alloc TaxCtx ApiDriver csi tax alloc PeriodicCtx ApiDriver csi periodic alloc PborderCtx ApiDriver csi pborder alloc Flag ApiDriver csi req set ReqCtx RegField_Configfile yourstore Flag ApiDriver csi req set ReqCtx RegField_Keyfile yourpem Flag ApiDriver csi req set ReqCtx ReqField Host securehost Flag ApiDriver csi req set ReqCtx ReqField Port 1139 port ApiDriver csi req get ReqCtx RegField Port Response Write Port amp port amp lt BR gt Flag ApiDriver csi order setrequest OrderCtx ReqCtx if ApiDriver bStat Succeed Then txtError 7 csi order setrequest amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi periodic set PeriodicCtx PeriodicField Startdate 20001207 Flag ApiDriver csi periodic set PeriodicCtx PeriodicField Periodicity CStr Periodicity Flag ApiDriver csi periodic set PeriodicCtx PeriodicField Installments CInt Installments Flag ApiDriver csi periodic set PeriodicCtx PeriodicField Threshold CInt Threshold Flag ApiDriver csi periodic set PeriodicCtx PeriodicField Comments This is pbill test Flag ApiDriver csi tax setrequest TaxCtx ReqCtx Flag ApiDriver csi shipping setrequest ShippingCtx ReqCtx Flag ApiDriver csi order set Or
9. gt LinkPoint RNATIO NA linkpoint com LINKPOINT COM OBJECT LCOM V5 4 DIN USER MANUAL Version 1 1 LinkPoint International Inc SOFTWARE LICENSING AGREEMENT LICENSE LinkPoint International Inc LinkPoint hereby grants you the right to use all or a portion of the Software accompanying this License regardless of media and the related Documentation This license does not grant you any right to any enhancement or update to the Software and Documentation You may obtain enhancements and updates if available at LinkPoint s then current terms and conditions RESTRICTIONS Any copy of the Software or derivative works made by you shall be subject to this Agreement The copy or derivative work shall contain this license as well as related Documentation as well as all notices regarding copyrights trademarks and other proprietary rights that came with the original Software and Documentation This Software is protected by the copyright laws of the United States and international copyright treaties You may not rent or lease the Software You many not reverse engineer decompile or disassemble the Software TITLE Title ownership rights and intellectual property rights in and to the Software and Documentation and derivative works if any shall remain in LinkPoint TERMINATION This Agreement may be terminated immediately by the non defaulting party if either you or LinkPoint default in its obligations Upon any termination of thi
10. long pborder retval out long _ RPC_FAR err HRESULT STDMETHODCALLTYPE csi_pborder_process in long pborder HRESULT STDMETHODCALLTYPE csi_pborder_setorder in long pborder in long order HRESULT STDMETHODCALLTYPE csi_pborder_setperiodic in long pborder in long periodic HRESULT STDMETHODCALLTYPE csi_pborder_settype in long pborder in long type HRESULT STDMETHODCALLTYPE csi_util_pborder_errorstr in long err retval out VARIANT RPC FAR str HRESULT STDMETHODCALLTYPE csi_check_alloc retval out long RPC FAR check HRESULT STDMETHODCALLTYPE csi_check_clear in long check HRESULT STDMETHODCALLTYPE csi_check_drop in long check HRESULT STDMETHODCALLTYPE csi_check_error in long check retval out long RPC_FAR err HRESULT STDMETHODCALLTYPE csi_check_get in long check in long check_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_check_set in long check in long check_field in VARIANT field HRESULT STDMETHODCALLTYPE csi_checkorder_alloc retval out long RPC FAR checkorder HRESULT STDMETHODCALLTYPE csi_checkorder_drop 2001 LinkPoint International Inc 7 LinkPoint COM Object LCOM User Manual Version 1 1 0501 in long checkorder HRESULT STDMETHODCALLT
11. txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi item clear ItemCtx price 14 50 itemtotal itemtotal numprogs price Flag ApiDriver csi item set ItemCtx ItemField Itemid Game 033 Flag ApiDriver csi item set ItemCtx ItemField Description Blast Em Game Software Flag ApiDriver csi item set ItemCtx ItemField Softfile file zip Flag ApiDriver csi item set ItemCtx ItemField Serial 2001 LinkPoint International Inc 33 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_item_set ItemCtx ItemField_Esdtype Esdtype_Softgood Flag ApiDriver csi_item_set ItemCtx ItemField_Price price Flag ApiDriver csi_item_set ItemCtx ItemField_Quantity CInt numprogs Flag ApiDriver csi_order_additem OrderCtx ItemCtx if ApiDriver bStat lt gt Succeed Then txtError txtError amp csi_order_additem ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi item drop ItemCtx subtotal itemtotal Flag ApiDriver csi_order_set OrderCtx OrderField_Subtotal subtotal Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Country US Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_State CO Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Total subtotal Flag ApiDriver csi_shipping_set Shippi
12. ApiDriver nothing End Function Function GetValue txtField 2001 LinkPoint International Inc 36 LinkPoint COM Object LCOM User Manual Version 1 1 0501 if txtArray Exists txtField then GetValue txtArray Item txtField end if End Function KE 2001 LinkPoint International Inc 37 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Example 3A VirtualCheck File vc_ordertest asp lt Language V BScript gt lt include file vc_processcard asp gt lt If Request Form SubmitOrder Submit Then ProcessCard processed TRUE End if gt lt IF processed THEN gt lt HTML gt lt HEAD gt lt META NAME GENERATOR Content Microsoft Visual Studio 6 0 gt lt HEAD gt lt BODY gt lt form ACTION vc_ordertest asp METHOD post NAME MyForm1 gt lt center gt lt FONT size 6 gt lt LABEL gt ASP LCOM lt LABEL gt lt FONT gt lt center gt lt center gt lt FONT size 6 gt lt LABEL gt Virtual Check 5 4 Ordertest Sample lt LABEL gt lt FONT gt lt center gt lt BR gt lt FONT size 4 gt lt LABEL gt Bname amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bname type TEXT name bname value John Doe gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 LABEL Account Type amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id accounttype type TEXT name accounttype value pc gt lt LABEL gt lt FONT gt l
13. LCOM User Manual Version 1 1 0501 ABOUT THIS MANUAL This document was written with the assumption that the reader has a basic administrative knowledge of and permissions for Windows component object model COM technology and the NT operating system and environment into which the COM object is being installed If this assumption is incorrect please contact your LinkPoint International representative for further installation assistance 2001 LinkPoint International Inc 1 LinkPoint COM Object LCOM User Manual Version 1 1 0501 INTRODUCTION To support storefront development on various platforms LinkPoint International has developed a COM object Windows Wrapper LCOM which provides the same functionality as LinkPoint Select API LCOM is an in process server supporting a single threaded apartment STA model In addition LCOM was created as a Release MinDependency build With LCOM transaction processing methods can be invoked from C C Visual Basic VB Script or any other language that can instantiate a COM object LCOM is not self registering you must run regsvr32 exe against it 2001 LinkPoint International Inc 2 LinkPoint COM Object LCOM User Manual Version 1 1 0501 METHODS AND FUNCTIONALITY Methods LCOM exposes a single interface called ILinkPointCom that is comprised of the following methods and properties HRESULT STDMETHODCALLTYPE get_bStat propget retval out BOOL __RPC_FAR pVal
14. OrderField Expmonth CStr orderform cc expmonth Extract a 2 digit year expyear orderform cc expyear expyear Mid expyear 2 Flag ApiDriver csi order set OrderCtx OrderField Expyear CStr expyear AA He e ee de e eee ee e e e ee ee de e eee ee e e eee ee e e eee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e eee eee e e ee eee eee Get the Customer e mail address for receipt IXA AAAA AKAAKA e ede de dee e e KK eee e e eee RK dede deed e ede de deed ee KA KA KA e dede de dede eee AA AA A AA eee Flag ApiDriver csi order set OrderCtx OrderField Email CStr orderform shopper email Vdesesese e esee e eee ee e e eee ee e e eee ee e e e ee ee e e eee ee e e e ee ee e e e ee ee e e eee ee e e e ee ee e e e ee ee e e eee eee eee For testing set for Result Good To go live set to Result Live LARA He ke e e eee ee e e eee ee de e eee ee e e eee ee e e eee ee e de e ee ee e e e ee ee e e eee ee de e e ee ee e e eee ee e e eee eee eee 2001 LinkPoint International Inc 55 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_order_set OrderCtx OrderField_Result Result_Good AAA a eee e eee ee e e eee ee de e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee eee eee Process each item in the orderform items list This will need to be tailored for each application since the handling of different types of items is different for each store
15. ReqField Host securehost Flag ApiDriver csi req set ReqCtx ReqField Port 1139 port ApiDriver csi req get ReqCtx ReqField Port Response Write Port amp port amp lt BR gt Flag ApiDriver csi order setrequest OrderCtx ReqCtx if ApiDriver bStat Succeed Then txtError 7 csi order setrequest amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Installments 12 Threshold 3 Flag ApiDriver csi_periodic_set PeriodicCtx PeriodicField_Startdate 20001207 Flag ApiDriver csi_periodic_set PeriodicCtx PeriodicField_Periodicity m1 Flag ApiDriver csi_periodic_set PeriodicCtx PeriodicField_Installments CInt Installments Flag ApiDriver csi_periodic_set PeriodicCtx PeriodicField_Threshold CInt Threshold Flag ApiDriver csi_periodic_set PeriodicCtx PeriodicField_Comments This is pbill test Flag ApiDriver csi tax setrequest TaxCtx ReqCtx Flag ApiDriver csi shipping setrequest ShippingCtx ReqCtx Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set Flag ApiDriver csi order set OrderCtx OrderField_Userid nobody OrderCtx OrderField Bname CStr bname OrderCtx OrderField_Bcompany ClearCommerce OrderCtx Ord
16. ShippingField Carrier 5 Responses Const ShippingField R Total 6 TaxField t Const TaxField State 0 Const TaxField Zip 1 Const TaxField Total 2 Responses Const TaxField R Total 3 OptionField t Const OptionField Option 0 Const OptionField Choice 1 PbOrder t Const PbOrder Submit 0 Const PbOrder Modify 1 Const PbOrder Cancel 2 Const PbOrder Process 3 PeriodicField t Const PeriodicField Startdate 0 Const PeriodicField Periodicity 1 Const PeriodicField Installments 2 Const PeriodicField Threshold 3 Const PeriodicField Comments 4 CheckOrder t Const CheckOrder Submit 0 Const CheckOrder Void 1 CheckField t Const CheckField_AccountType 0 Const CheckField_TransitRouting 1 Const CheckField MICR 2 Const CheckField_CheckNumber 3 Const CheckField_Comments 4 Opaque contexts Dim OrderCtx Dim ItemCtx Dim OptionCtx Dim RegCtx Dim ShippingCtx 2001 LinkPoint International Inc 43 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Dim TaxCtx Dim CheckCtx Dim CheckorderCtx Dim ApiDriver Set txtArray Server CreateObject Scripting Dictionary Function ProcessCard On Error Resume Next Local variable declarations Dim txtVersion Dim port Dim price Dim total Dim itemtotal Dim subtotal Dim taxtotal Dim esdfiles Dim CheckorderType Err Clear Set ApiDriver Server CreateObject LpiCom_5_4 LinkPointCom if Err Num
17. e ede dede de dee e e dee eee dee e e eee KA KA ee dede dede dede e e eee eee ee eee Flag ApiDriver csi req set ReqCtx ReqField_Configfile yourstore Flag ApiDriver csi req set ReqCtx RegField_Keyfile yourpem Flag ApiDriver csi req set ReqCtx ReqField Host securehost Flag ApiDriver csi req set ReqCtx ReqField Port 1139 2001 LinkPoint International Inc 54 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi order setrequest OrderCtx ReqCtx if ApiDriver bStat Succeed Then txtError 7 csi order setrequest amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx orderform purchase errors Add txtError End If Get Billing and Shipping info Flag ApiDriver csi order set OrderCtx OrderField_Userid CStr orderform shopper ID Flag ApiDriver csi order set OrderCtx OrderField_Bname CStr orderform bill to name Flag ApiDriver csi order set OrderCtx OrderField_Baddr1 CStr orderform bill to street Flag ApiDriver csi order set OrderCtx OrderField_Bcity CStr orderform bill to city Flag ApiDriver csi order set OrderCtx OrderField_Bstate CStr orderform bill to state Flag ApiDriver csi order set OrderCtx OrderField Bzip CStr orderform bill to zip Flag ApiDriver csi order set OrderCtx OrderField Bcountry CStr orderform bill to country Flag ApiDriver csi order set OrderCtx OrderField Sname CStr orderform ship to name Flag ApiDriv
18. submit value Submit gt lt P gt lt form gt lt BODY gt lt HTML gt lt ELSE gt lt html gt lt body gt lt form ACTION api_ordertest asp METHOD POST NAME MyForm gt lt P align center gt lt FONT size 6 gt lt LABEL gt ASP Ordertest Results lt LABEL gt lt FONT gt lt P gt lt table width 700 border 1 height 400 gt lt tr gt lt td gt SSL API version lt td gt lt td colspan 2 gt lt input type text size 20 name txtVersion value lt GetValue txtVersion gt gt lt td gt lt tr gt lt tr gt lt td gt Shipping Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtShipTotal value lt GetValue txtShipTotal gt gt lt td gt lt tr gt lt tr gt lt td height 34 gt Tax lt td gt lt td colspan 2 height 34 gt lt input type text size 20 name txtTax value lt GetValue txtTax gt gt lt td gt lt tr gt lt tr gt lt td gt Charge Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtChargeTotal value lt GetValue txtChargeTotal gt gt lt td gt lt tr gt lt tr gt lt td gt Time lt td gt lt td colspan 2 gt lt input type text size 40 name txtTime value lt GetValue txtTime gt gt 2001 LinkPoint International Inc 39 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt td lt tr gt lt tr gt lt td gt Ref lt td gt l
19. taxtotal shiptotal Flag ApiDriver csi_order_set OrderCtx OrderField_Chargetotal total txtChargeTotal total Flag ApiDriver csi_pborder_setorder PborderCtx OrderCtx If ApiDriver bStat lt gt Succeed Then txtError csi_pborder_setorder ApiDriver csi util pborder errorstr ApiDriver csi pborder error PborderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi pborder setperiodic PborderCtx PeriodicCtx If ApiDriver bStat Succeed Then txtError csi pborder setperiodic ApiDriver csi util pborder errorstr ApiDriver csi pborder error PborderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If pbtype PbOrder Submit pbtype PbOrder Cancel pbtype PbOrder Modify pbtype PbOrder Process Flag ApiDriver csi pborder settype PborderCtx CInt pbtype If ApiDriver bStat lt gt Succeed Then txtError csi pborder settype ApiDriver csi util pborder errorstr ApiDriver csi pborder error PborderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi_pborder_process PborderCtx if ApiDriver bStat lt gt Succeed Then 2001 LinkPoint International Inc 35 LinkPoint COM Object LCOM User Manual Version 1 1 0501 txtError csi_pborder_process ApiDriver csi util pborder errorstr ApiDriver csi pborder error PborderCtx txtArray Add txtError txtE
20. 2 gt lt input type text size 20 name txtRef value lt GetValue txtRef gt gt lt td gt lt tr gt lt tr gt lt td gt Approved lt td gt lt td colspan 2 gt lt input type text size 20 name txtAppr value lt GetValue txtAppr gt gt lt td gt lt tr gt lt tr gt lt td height 24 gt Code lt td gt lt td height 24 colspan 2 gt lt input type text size 20 name txtCode value lt GetValue txtCode gt gt lt td gt lt tr gt lt tr gt lt td gt Errorl lt td gt lt td colspan 2 gt lt input type text size 60 name txtError value lt GetValue txtError gt gt lt td gt lt tr gt lt tr gt lt td gt Error2 lt td gt lt td colspan 2 gt lt input type text size 60 name txtErr value lt GetValue txtErr gt gt lt td gt lt tr gt 2001 LinkPoint International Inc 14 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt tr gt lt td gt Order lt td gt lt td colspan 2 gt lt input type text size 40 name txtOrd value lt GetValue txtOrd gt gt lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt lt table gt lt form gt lt body gt lt html gt lt END IF gt 2001 LinkPoint International Inc 15 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Example 1B API File api_processcard asp lt Created from ccapi
21. 4 DLL Read the ComReadme txt file for additional information Follow the necessary instructions to run one of the sample programs to validate the installation and connectivity to the LinkPoint Secure Payment Gateway 2001 LinkPoint International Inc 9 LinkPoint COM Object LCOM User Manual Version 1 1 0501 PRODUCT INTEGRATION To integrate LCOM you need only to call directly the methods provided by COM object from your application The Sample Scripts section provides several samples that call methods in the LCOM module You may modify and use these samples as an example to integrate LCOM into your product Note The following are parameters in the sample script that need to be updated for your particular testing and implementation e ReqField_Configfile store name e ReqField_Keyfile absolute path and file name for your pem file e RegFile Host secure host name e ReqFile Port usually 1139 e OrderField_Email test customer e mail address 2001 LinkPoint International Inc 10 LinkPoint COM Object LCOM User Manual Version 1 1 0501 SAMPLE SCRIPTS To assist in the development of storefronts using LCOM sample programs have been written in Active Server Page ASP showing how to invoke the COM methods All of the programs mirror the sample ccapi_ordertest c that comes with LinkPoint Select API Note Before running any of these samples you will need to change the store specific parameters to your store These p
22. Array Add txtError txtError Set ApiDriver nothing Exit Function End If taxtotal ApiDriver csi tax get TaxCtx TaxField R Total txtTax taxtotal Flag ApiDriver csi order set OrderCtx OrderField Tax taxtotal Flag ApiDriver csi tax drop TaxCtx 2001 LinkPoint International Inc 22 LinkPoint COM Object LCOM User Manual Version 1 1 0501 total subtotal taxtotal shiptotal Flag ApiDriver csi_order_set OrderCtx OrderField_Chargetotal total txtChargeTotal total Flag ApiDriver csi_order_process OrderCtx if ApiDriver bStat lt gt Succeed Then txtError csi_order_process ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function Else txtTime ApiDriver csi order get OrderCtx OrderField R Time txtRef ApiDriver csi order get OrderCtx OrderField R Ref txtAppr ApiDriver csi order get OrderCtx OrderField R Approved txtCode ApiDriver csi order get OrderCtx OrderField R Code txtErr ApiDriver csi order get OrderCtx OrderField R Error txtOrd ApiDriver csi order get OrderCtx OrderField_R_Ordernum End If esdfiles ApiDriver csi order getesd OrderCtx nLBound LBound esdfiles nUBound UBound esdfiles If ApiDriver bStat Succeed Then txtError csi order process ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothin
23. Driver csi_item_set ItemCtx ItemField_Esdtype Esdtype_Softgood Flag ApiDriver csi_item_set ItemCtx ItemField_Price price Flag ApiDriver csi_item_set ItemCtx ItemField_Quantity CInt numprogs Flag ApiDriver csi_order_additem OrderCtx ItemCtx if ApiDriver bStat lt gt Succeed Then txtError txtError amp csi_order_additem ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi item drop ItemCtx subtotal itemtotal Flag ApiDriver csi_order_set OrderCtx OrderField_Subtotal subtotal Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Country US Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_State CO Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Total subtotal Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Items 2 Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Weight 1 00 Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Carrier 1 Flag ApiDriver csi_shipping_process ShippingCtx if ApiDriver bStat lt gt Succeed Then txtError csi_shipping_process ApiDriver csi_util_errorstr ApiDriver csi_shipping_error ShippingCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If shiptotal ApiDriver csi_shipping_get ShippingCtx ShippingField_R_Total txtShipTotal shiptotal
24. End if gt lt IF processed THEN gt lt HTML gt lt HEAD gt lt META NAME GENERATOR Content Microsoft Visual Studio 6 0 gt lt HEAD gt lt BODY gt lt form ACTION api_ordertest asp METHOD post NAME MyForm1 gt lt center gt lt FONT size 6 gt lt LABEL gt ASP LCOM API 5 4 Ordertest Sample lt LABEL gt lt FONT gt lt center gt lt BR gt lt FONT size 4 gt lt LABEL gt Bname amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bname type TEXT name bname value John Doe gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Baddr1 amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id baddr1 type TEXT name baddr1 value 11500 Metric Blvd Suite 300 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Bcity amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bcity type TEXT name bcity value Denver gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Bstate amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bstate type TEXT name bstate value CO gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Bzip amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bzip type TEXT name bzip value 80219 gt
25. LinkPointCom if Err Number lt gt 0 Then Response Write Error creating object amp Err Description amp lt BR gt Exit Function End if Dim bname Dim card Dim baddr1 Dim bstate Dim bcity Dim bzip Dim numShirts Dim numProgs Dim shirtprice Dim progprice bname Request Form bname baddr1 Request Form baddr1 bstate Request Form bstate bcity Request Form beity bzip Request Form bzip card Request Form creditcard numshirts Request Form numShirts numprogs Request Form numProg shirtprice Request Form shirtprice progprice Request Form progprice txtVersion ApiDriver csi_util_version 2001 LinkPoint International Inc 19 LinkPoint COM Object LCOM User Manual Version 1 1 0501 txtArray Add txtVersion txtVersion OrderCtx ApiDriver csi_order_alloc ItemCtx ApiDriver csi_item_alloc OptionCtx _ ApiDriver csi option alloc ReqCtx ApiDriver csi req alloc ShippingCtx ApiDriver csi shipping alloc TaxCtx ApiDriver csi tax alloc Flag ApiDriver csi req set ReqCtx RegField Configfile yourstore Flag ApiDriver csi req set ReqCtx ReqField Keyfile yourpem Flag ApiDriver csi req set ReqCtx ReqField Host securehost Flag ApiDriver csi req set ReqCtx ReqField Port 1139 port ApiDriver csi req get ReqCtx RegField Port Response Write Port amp port amp lt BR gt Flag ApiDriver csi order setrequest Orde
26. P gt lt form gt lt BODY gt lt HTML gt lt ELSE gt lt html gt lt body gt lt form ACTION api_ordertest asp METHOD POST NAME MyForm gt lt P align center gt lt FONT size 6 gt lt LABEL gt ASP Ordertest Results lt LABEL gt lt FONT gt lt P gt lt table width 700 border 1 height 400 gt lt tr gt lt td gt SSL API version lt td gt lt td colspan 2 gt lt input type text size 20 name txtVersion value lt GetValue txtVersion gt gt lt td gt lt tr gt lt tr gt lt td gt Shipping Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtShipTotal value lt GetValue txtShipTotal gt gt lt td gt 2001 LinkPoint International Inc 13 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt tr gt lt tr gt lt td height 34 gt Tax lt td gt lt td colspan 2 height 34 gt lt input type text size 20 name txtTax value lt GetValue txtTax gt gt lt td gt lt tr gt lt tr gt lt td gt Charge Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtChargeTotal value lt GetValue txtChargeTotal gt gt lt td gt lt tr gt lt tr gt lt td gt Time lt td gt lt td colspan 2 gt lt input type text size 40 name txtTime value lt GetValue txtTime gt gt lt A td gt lt tr gt lt tr gt lt td gt Ref lt td gt lt td colspan
27. Use duplication or disclosure by the Government is subject to restrictions set forth in subparagraphs a through d of the Commercial Computer Restricted Rights clause at FAR 52 227 19 when applicable or in subparagraph c 1 ii of the Rights in Technical Data and Computer Software clause at DFARS 252 227 7013 and in similar clauses in the NASA FAR Supplement Contractor manufacturer is LinkPoint International Inc 5310 Derry Avenue Suite W Agoura Hills California 91301 DISCLAIMER OF WARRANTY You expressly acknowledge and agree that use of the LinkPoint Software is at your sole risk The Software and related documentation are provided on an AS IS basis without warranty of any kind including without limitation the warranties of merchantability fitness for a particular purpose and non infringement The entire risk as to the quality and performance of the Software is borne by you Should the Software prove defective you and not LinkPoint assume the entire cost of any service and repair This disclaimer of warranty constitutes an essential part of the agreement LIMITATION OF LIABILITY UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY TORT CONTRACT OR OTHERWISE SHALL LINKPOINT OR ITS SUPPLIERS OR RESELLERS BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING WITHOUT LIMITATION DAMAGES FOR LOSS OF GOODWILL WORK STOPPAGE COMPUTER FAILURE OR MALFUNCTION OR AN
28. Y AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES IN NO EVENT WILL LINKPOINT BE LIABLE FOR ANY DAMAGES IN EXCESS OF LINKPOINT S LIST PRICE FOR A LICENSE TO THE SOFTWARE EVEN IF LINKPOINT SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES OR FOR ANY CLAIM BY ANY OTHER PARTY THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION FURTHERMORE SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES SO THIS LIMITATION AND EXCLUSION MAY NOT APPLY TO YOU COMPLETE AGREEMENT This Agreement represents the complete and exclusive statement of the agreements concerning this license between the parties and supersedes all prior agreements and representations between them It may be amended only by a writing executed by both parties THE USE OF THE SOFTWARE BY YOU IS EXPRESSLY MADE CONDITIONAL ON YOUR ASSENT TO THE TERMS SET FORTH HEREIN AND LINKPOINT AGREES TO FURNISH THE SOFTWARE AND DOCUMENTATION ONLY UPON THESE TERMS CONTROLLING LAW AND SEVERABILITY If any provision of this Agreement is held to be unenforceable for any reason such provision shall be reformed only to the extent necessary to make it enforceable and such decision shall not affect the enforceability i of such provision under other circumstances or ii of the remaining provisions hereof under all circumstances Headings shall not be considered in inte
29. YPE csi_checkorder_error in long checkorder retval out long _ RPC_FAR err HRESULT STDMETHODCALLTYPE csi_checkorder_process in long checkorder HRESULT STDMETHODCALLTYPE csi_checkorder_setcheck in long checkorder in long check HRESULT STDMETHODCALLTYPE csi_checkorder_setorder in long checkorder in long order HRESULT STDMETHODCALLTYPE csi_checkorder_settype in long checkorder in long type HRESULT STDMETHODCALLTYPE csi_util_checkorder_errorstr in long err retval out VARIANT RPC FAR str Functionality Refer to the LinkPoint Select API manual for descriptions of the methods and their arguments 2001 LinkPoint International Inc 8 LinkPoint COM Object LCOM User Manual Version 1 1 0501 INSTALLATION Pre Installation System Requirements Windows NT LinkPoint assigned electronic certificate pem file Your merchant account must be provisioned for LinkPoint Select API Installing LCOM Installation of LCOM consists of registering the COM object and following the steps below If you have problems during installation e mail LinkPoint International for assistance see Technical Support 1 2 3 4 e Unzip the LpiCom 5 4 zip file Copy the LpiCom 5 4 DLL to C WINNT SYSTEM32 From a disk operating system DOS window navigate to C WINNT SYSTEM32 Issue the following command gt regsvr32 LpiCom 5
30. _error h from API 3 8 3 Const Fail 0 Const Succeed 1 Created from ccapi_client h from API 3 8 3 Request types possible for OrderField_Chargetype Const Chargetype_Auth 0 Const Chargetype_Sale 0 Const Chargetype_Preauth 1 Const Chargetype_Postauth 2 Const Chargetype_Credit 3 Const Chargetype_Voidsale 9 Const Chargetype_Error 0 Result types possible for OrderField_Result Const Result_Live 0 Const Result_Good 1 Const Result_Duplicate 2 Const Result_Decline 3 ESD types for ItemField_Esdtype Const Esdtype None 0 Const Esdtype Softgood 1 Const Esdtype Key 2 OrderField t Const OrderField Userid 1 Const OrderField Bcompany 2 Const OrderField_Bcountry 3 Const OrderField_Bname 4 Const OrderField_Baddr1 5 Const OrderField Baddr2 6 Const OrderField_Bcity 7 Const OrderField_Bstate 8 Const OrderField_Bzip 9 Const OrderField_Sname 10 Const OrderField_Saddr1 11 Const OrderField_Saddr2 12 Const OrderField_Scity 13 Const OrderField_Sstate 14 Const OrderField_Szip 15 Const OrderField_Scountry 16 Const OrderField_Phone 17 Const OrderField_Fax 18 Const OrderField_Refer 19 2001 LinkPoint International Inc 16 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const OrderField_Shiptype 20 Const OrderField_Shipping 21 Const OrderField_Tax 22 Const OrderField_Subtotal 23 Const OrderField_Vattax 24 Const OrderField_Comments
31. arameters are yourstore your 6 digit store name yourpem full path and file name for your pem file securehost secure host name youraddress customer e mail address for receipts Note When passing parameters to the COM object using VB Script variables you must cast them using the CStr CInt and CDbl functions In VB Script COM application program interface API methods that return a value do so in the method name itself or function return values Functions that do not return a value still need an IValue for its call These would be the identifiers flag in the following sample In addition the constants found in the following sample code were derived from the constants defined in the header files included with LinkPoint Select API The values of these constants must not be altered 2001 LinkPoint International Inc 11 LinkPoint COM Object LCOM User Manual Version 1 1 0501 ACTIVE SERVER PAGE ASP SAMPLES The following three ASP samples demonstrate how to use the COM object with regard to LinkPoint Select API Periodic Billing and VirtualCheck To hide the VB Script from the client s browser instantiate the COM object by using Server CreateObject and specify the ProgId as LpiCom_5_4 LinkPointCom Example 1A API File api_ordertest asp lt Language V BScript gt lt include file api_processcard asp gt lt If Request Form SubmitOrder Submit Then ProcessCard processed TRUE
32. axExempt 27 Const OrderField_MaxItems 28 Const OrderField_Email 29 Const OrderField_Cardnumber 30 Const OrderField_Expmonth 31 Const OrderField_Expyear 32 Const OrderField_Chargetype 33 Const OrderField_Chargetotal 34 Const OrderField_Referencenumber 35 Const OrderField_Result 36 Const OrderField_Addrnum 37 Const OrderField_Ip 38 Const OrderField_MercType 39 Const OrderField_SwitchStartDate 40 Const OrderField_SwitchIssueNumber 41 Responses Const OrderField R Time 42 Const OrderField R Ref 43 Const OrderField R Approved 44 Const OrderField_R_Code 45 Const OrderField_R_Ordernum 46 Const OrderField R Error 47 Const OrderField_R_FraudCode 48 Const OrderField_R_AuthResponse 49 Const OrderField R Message 50 RegField t Const ReqField Configfile 0 Const ReqField Keyfile 1 Const RegField_Appname 2 Const ReqField Host 3 Const ReqField Port 4 ItemField_t Const ItemField_Itemid 0 Const ItemField Description 1 Const ItemField Price 2 Const ItemField Quantity 3 Const ItemField Softfile 4 Const ItemField Esdtype 5 Const ItemField Serial 6 Const ItemField MaxOptions 7 2001 LinkPoint International Inc 42 LinkPoint COM Object LCOM User Manual Version 1 1 0501 ShippingField_t Const ShippingField_Country 0 Const ShippingField_State 1 Const ShippingField Total 2 Const ShippingField Items 3 Const ShippingField Weight 4 Const
33. ber lt gt 0 Then Response Write Error creating object amp Err Description amp lt BR gt Exit Function End if Dim bname Dim numShirts Dim numProgs Dim accounttype Dim checkno Dim route Dim micr bname Request Form bname numshirts Request Form numShirts numprogs Request Form numProg accounttype Request Form accounttype checkno Request Form checkno route Request Form route micr Request Form micr txtVersion ApiDriver csi_util_version txtArray Add txtVersion txtVersion 2001 LinkPoint International Inc 44 LinkPoint COM Object LCOM User Manual Version 1 1 0501 OrderCtx ApiDriver csi_order_alloc ItemCtx ApiDriver csi_item_alloc OptionCtx _ ApiDriver csi option alloc ReqCtx ApiDriver csi req alloc ShippingCtx ApiDriver csi shipping alloc TaxCtx ApiDriver csi_tax_alloc CheckCtx ApiDriver csi_check_alloc CheckorderCtx ApiDriver csi_checkorder_alloc Flag ApiDriver csi_check_set CheckCtx CheckField_AccountType CStr accounttype Flag ApiDriver csi check set CheckCtx CheckField_TransitRouting CStr route Flag ApiDriver csi check set CheckCtx CheckField MICR CStr micr Flag ApiDriver csi check set CheckCtx CheckField CheckNumber CInt checkno Flag ApiDriver csi req set ReqCtx ReqField_Configfile yourstore Flag ApiDriver csi req set ReqCtx RegField_Keyfile yourpem Flag ApiDriver csi req set ReqCtx
34. bsp amp nbsp lt SELECT id select1 name numShirts size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt lt LABEL gt lt FONT gt lt BR gt 2001 LinkPoint International Inc 25 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt FONT size 4 gt lt LABEL gt Blast Em Software amp nbsp lt SELECT id select2 name numProg size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt lt LABEL gt lt FONT gt lt BR gt lt P align center gt lt INPUT id submit name SubmitOrder type submit value Submit gt lt P gt lt form gt lt BODY gt lt HTML gt lt ELSE gt lt html gt lt body gt lt form ACTION api_ordertest asp METHOD POST NAME MyForm gt lt P align center gt lt FONT size 6 gt lt LABEL gt ASP Ordertest Results lt LABEL gt lt FONT gt lt P gt lt table width 700 border 1 height 400 gt lt tr gt lt td gt SSL API version lt td gt lt td colspan 2 gt lt input type text size 20 name txtVersion value lt GetValue txtVersion gt gt lt td gt lt tr gt lt tr gt lt td gt Shipping Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtShipTotal value lt GetValue txtShipTotal gt gt lt td gt lt tr gt lt tr gt lt td he
35. d State 0 Const TaxField Zip 1 Const TaxField Total 2 Responses 2001 LinkPoint International Inc 53 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const TaxField_R_Total 3 OptionField_t Const OptionField_Option 0 Const OptionField_Choice 1 Opaque contexts Dim OrderCtx Dim ItemCtx Dim OptionCtx Dim RegCtx Dim ApiDriver Local variable declarations Dim price Dim total Dim itemprice Dim subtotal Dim taxtotal Dim expyear Dim txtVersion Dim txtTime Dim txtRef Dim txtAppr Dim txtCode Dim txtErr Dim txtError Dim txtOrd txtAppr subtotal 0 0 Vdesesesee eee e eee ee e e e ee ee de e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee eee eee Instantiate the LinkPoint COM object TARA a Re eee e eee ee de e e ee ee e e e ee ee e e e ee ee e e e ee ee e de e ee ee e e e ee ee e e eee ee e e e ee ee e e eee ee e e e ee eee eee Set ApiDriver CreateObject LpiCom 5 4 LinkPointCom txtVersion ApiDriver csi util version OrderCtx ApiDriver csi order alloc ItemCtx ApiDriver csi item alloc OptionCtx _ ApiDriver csi option alloc ReqCtx ApiDriver csi req alloc Vdese esee esee e eee ee e e eee ee de e e ee ee e e eee ee e e e ee ee e e eee ee e e eee ee e e eee ee e e eee ee e e e ee ee e e eee eee eee Set merchant specific parameters V esesesese KA KA KA KA e e e eee de dee e e eee de dede e e ede de dede dee e
36. derCtx OrderField_Userid nobody Flag ApiDriver csi order set OrderCtx OrderField Bname CStr bname Flag ApiDriver csi order set OrderCtx OrderField Bcompany ClearCommerce Flag ApiDriver csi order set OrderCtx OrderField_Baddr1 11500 Metric Blvd Suite 300 Flag ApiDriver csi order set OrderCtx OrderField Boite Denver Flag ApiDriver csi order set OrderCtx OrderField_Bstate CO Flag ApiDriver csi order set OrderCtx OrderField Bzip 80219 Flag ApiDriver csi order set OrderCtx OrderField Bcountry US Flag ApiDriver csi order set OrderCtx OrderField_Sname John Q Public Flag ApiDriver csi order set OrderCtx OrderField Saddr1 11500 Metric Blvd Suite 300 Flag ApiDriver csi order set OrderCtx OrderField Scity Denver Flag ApiDriver csi order set OrderCtx OrderField Sstate CO Flag ApiDriver csi order set OrderCtx OrderField Szip 80219 Flag ApiDriver csi order set OrderCtx OrderField Scountry US Flag ApiDriver csi order set OrderCtx OrderField Phone 512 832 0132 2001 LinkPoint International Inc 32 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_order_set Flag ApiDriver csi_order_set Flag ApiDriver csi_order_set OrderCtx OrderField_Cardnumber CStr card Flag ApiDriver csi_order_set OrderCtx OrderField_ChargeType Chargetype_Auth Flag ApiDriver csi_order_set OrderCtx OrderField_Expmonth 12 Flag ApiD
37. e e e e eee dede e e e eee eee e e e eed dee e e eee eee e e e eee KA AA e e AA AA AA e eee eee ee eee Flag ApiDriver csi order process OrderCtx If ApiDriver bStat lt gt Succeed Then txtError csi_order_process ApiDriver csi util errorstr ApiDriver csi order error OrderCtx orderform purchase errors Add txtError Else txtTime ApiDriver csi order get OrderCtx OrderField R Time txtRef ApiDriver csi order get OrderCtx OrderField R Ref txtAppr ApiDriver csi order get OrderCtx OrderField R Approved txtCode ApiDriver csi order get OrderCtx OrderField R Code txtErr ApiDriver csi order get OrderCtx OrderField R Error txtOrd ApiDriver csi order get OrderCtx OrderField_R_Ordernum End If Flag ApiDriver csi item drop ItemCtx Flag ApiDriver csi option drop OptionCtx Flag ApiDriver csi order drop OrderCtx Flag ApiDriver csi req drop ReqCtx 2001 LinkPoint International Inc 57 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Set ApiDriver nothing Vdesesesee eee e e ee ee e e eee ee e e eee ee de e eee ee e de eee ee e de e ee ee e e e ee ee e e e ee ee de e e ee ee e e eee ee e e eee eee eee Return the appropriate status Vlesesese eee eee dede e e e eee dede e e e eee eee e e e eee eee e e e eee eee e e eee eee e KA KA dede eee dee AA AA eee A AA AA KA KA If txtAppr APPROVED Then MSCSExecute 1 orderform _payment_auth_code txtAppr Else MSCSExecute 2 orderform purchas
38. e errors Add Error amp txtErr orderform payment auth code DENIED End If End Function 2001 LinkPoint International Inc 58 LinkPoint COM Object LCOM User Manual Version 1 1 0501 APPENDIX A Deliverables After your purchase of the LCOM wrapper a file containing all deliverables will be sent to you by e mail LCOM is in the following format e Windows NT platforms a Zip file will be delivered The content of the LCOM zip file is 1 LinkPoint COM Object e LpiCom 5 4 dll 2 Readme File e ComReadme txt 3 ASP Samples global asa api_ordertest asp api_processcard asp pb_ordertest asp pb_processcard asp vc_ordertest asp vc_processcard asp 4 Site Server Commerce Edition Payment Component Sample e ProcessCard vbs 5 LinkPoint COM Object User Manual this document Purchasing Contact Information Telephone 800 456 5989 extension 2966 E mail lcomsupport linkpoint com 2001 LinkPoint International Inc 59 LinkPoint COM Object LCOM User Manual Version 1 1 0501 APPENDIX B Technical Support E mail lcomsupport linkpoint com 2001 LinkPoint International Inc 60 LinkPoint COM Object LCOM User Manual Version 1 1 0501
39. er csi item drop ItemCtx subtotal itemtotal Flag ApiDriver csi order set OrderCtx OrderField Subtotal subtotal Flag ApiDriver csi shipping set ShippingCtx ShippingField Country US Flag ApiDriver csi shipping set ShippingCtx ShippingField State CO Flag ApiDriver csi shipping set ShippingCtx ShippingField Total subtotal Flag ApiDriver csi shipping set ShippingCtx ShippingField Items 2 Flag ApiDriver csi shipping set ShippingCtx ShippingField Weight 1 00 Flag ApiDriver csi shipping set ShippingCtx ShippingField Carrier 1 Flag ApiDriver csi shipping process ShippingCtx if ApiDriver bStat lt gt Succeed Then txtError csi_shipping_process ApiDriver csi_util_errorstr ApiDriver csi_shipping_error ShippingCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If shiptotal ApiDriver csi_shipping_get ShippingCtx ShippingField_R_Total txtShipTotal shiptotal Flag ApiDriver csi_order_set OrderCtx OrderField_Shipping shiptotal Flag ApiDriver csi_shipping_drop ShippingCtx price shiptotal subtotal Flag ApiDriver csi_tax_set TaxCtx TaxField_State CO Flag ApiDriver csi_tax_set TaxCtx TaxField_Zip 80219 Flag ApiDriver csi_tax_set TaxCtx TaxField_Total price Flag ApiDriver csi_tax_process TaxCtx if ApiDriver bStat lt gt Succeed Then txtError csi tax process ApiDriver csi util errorstr ApiDriver csi tax error TaxCtx txt
40. er csi order set OrderCtx OrderField_Saddr1 CStr orderform ship to street Flag ApiDriver csi order set OrderCtx OrderField Scity CStr orderform ship to city Flag ApiDriver csi order set OrderCtx OrderField Sstate CStr orderform ship to state Flag ApiDriver csi order set OrderCtx OrderField Gap CStr orderform ship to zip Flag ApiDriver csi order set OrderCtx OrderField Scountry CStr orderform ship to country Flag ApiDriver csi order set OrderCtx OrderField Phone CStr orderform ship to phone Flag ApiDriver csi order set OrderCtx OrderField Comments No comments today AA He ke de e e ee ee e e eee ee de e e ee ee e e e ee ee e e e ee ee de e e ee ee e e eee ee e e e ee ee e e e ee ee e e e ee ee e e eee eee eee Set the ChargeType to Auth Sale AA a e eee e eee ee e e eee ee e e eee ee e e e ee ee e e e ee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee ee e e eee eee eee Flag ApiDriver csi order set OrderCtx OrderField ChargeType Chargetype Auth Vdesese sese ee e e eee ee e e eee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e eee ee e e eee ee e e eee eee eee Get Credit Card info Vdesesese ke e e eee ee e e eee ee de e e ee ee de e eee ee e e e ee ee e de eee ee e e e ee ee e e e ee ee e e e ee ee e e e ee ee e e eee eee eee Flag ApiDriver csi order set OrderCtx OrderField Cardnumber CStr orderform cc number Flag ApiDriver csi order set OrderCtx
41. er setcheck ApiDriver csi util checkorder errorstr ApiDriver csi checkorder error CheckorderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If CheckorderType CheckOrder Submit CheckorderType CheckOrder Void Flag ApiDriver csi checkorder settype CheckorderCtx CInt CheckorderType If ApiDriver bStat lt gt Succeed Then txtError csi checkorder settype ApiDriver csi util checkorder errorstr ApiDriver csi checkorder error CheckorderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi checkorder process CheckorderCtx if ApiDriver bStat Succeed Then txtError csi checkorder process ApiDriver csi util checkorder errorstr ApiDriver csi checkorder error CheckorderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function 2001 LinkPoint International Inc 48 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Else txtTime ApiDriver csi_order_get OrderCtx OrderField_R_Time txtRef ApiDriver csi_order_get OrderCtx OrderField_R_Ref txtAppr ApiDriver csi_order_get OrderCtx OrderField_R_Approved txtCode ApiDriver csi_order_get OrderCtx OrderField_R_Code txtErr ApiDriver csi_order_get OrderCtx OrderField_R_Error txtOrd ApiDriver csi_order_get OrderCtx OrderField_R_Ordernum End If esdfiles ApiDriver csi_order_getesd OrderCtx nLBound LBound esdfiles nUBound UBo
42. erField Baddr1 11500 Metric Blvd Suite 300 OrderCtx OrderField_Bcity Denver OrderCtx OrderField Bstate CO OrderCtx OrderField_Bzip 80219 OrderCtx OrderField_Bcountry US Paesaggi EEE 2001 LinkPoint International Inc 45 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_order_set OrderCtx OrderField_Sname John Q Public Flag ApiDriver csi_order_set OrderCtx OrderField_Saddr1 11500 Metric Blvd Suite 300 Flag ApiDriver csi_order_set OrderCtx OrderField_Scity Denver Flag ApiDriver csi_order_set OrderCtx OrderField_Sstate CO Flag ApiDriver csi_order_set OrderCtx OrderField_Szip 80219 Flag ApiDriver csi_order_set OrderCtx OrderField_Scountry US Flag ApiDriver csi_order_set OrderCtx OrderField_Phone 512 832 0132 Flag ApiDriver csi_order_set OrderCtx OrderField_Fax 512 832 8901 Flag ApiDriver csi_order_set OrderCtx OrderField_Comments No comments today Flag ApiDriver csi_order_set OrderCtx OrderField_ChargeType Chargetype_Auth Flag ApiDriver csi_order_set OrderCtx OrderField_Email youremail Flag ApiDriver csi_order_set OrderCtx OrderField_Result Result_Good Flag ApiDriver csi_order_set OrderCtx OrderField_Addrnum 111 price 17 95 itemtotal numshirts price Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set ItemCtx ItemFie
43. g Exit Function Else For i nLBound to nUBound file esdfiles i If file lt gt AND file lt gt Could not create URL Then Response Write ESD amp i amp amp file amp lt BR gt End If Next End If When debugging the COM object comment out the next line Flag ApiDriver csi order drop OrderCtx Flag ApiDriver csi req drop ReqCtx txtArray Add txtError txtError txtArray Add txtTime txtTime txtArray Add txtRef txtRef txtArray Add txtAppr txtAppr txtArray Add txtCode txtCode txtArray Add txtErr txtErr 2001 LinkPoint International Inc 23 LinkPoint COM Object LCOM User Manual Version 1 1 0501 txtArray Add txtOrd txtOrd txtArray Add txtTax txtTax txtArray Add txtChargeTotal txtChargeTotal txtArray Add txtShipTotal txtShipTotal Set ApiDriver nothing End Function Function GetValue txtField if txtArray Exists txtField then GetValue txtArray Item txtField end if End Function gt 2001 LinkPoint International Inc 24 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Example 2A Periodic Billing File pb_ordertest asp lt Language V BScript gt lt include file pb_processcard asp gt lt If Request Form SubmitOrder Submit Then ProcessCard processed TRUE End if gt lt IF processed THEN gt lt HTML gt lt HEAD gt lt META NAME GENERATOR Content Microsoft Visual Studio 6 0 gt
44. hargetype Const Chargetype Auth 0 2001 LinkPoint International Inc 51 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const Chargetype_Sale 0 Const Chargetype_Preauth 1 Const Chargetype_Postauth 2 Const Chargetype_Credit 3 Const Chargetype_Error 0 Result types possible for OrderField_Result Const Result_Live 0 Const Result_Good 1 Const Result_Duplicate 2 Const Result_Decline 3 ESD types for ItemField_Esdtype Const Esdtype_None 0 Const Esdtype Softgood 1 Const Esdtype Key 2 OrderField t Const OrderField Userid 1 Const OrderField Bcompany 2 Const OrderField_Bcountry 3 Const OrderField_Bname 4 Const OrderField_Baddr1 5 Const OrderField Baddr2 6 Const OrderField_Bcity 7 Const OrderField_Bstate 8 Const OrderField_Bzip 9 Const OrderField_Sname 10 Const OrderField_Saddr1 11 Const OrderField_Saddr2 12 Const OrderField_Scity 13 Const OrderField_Sstate 14 Const OrderField_Szip 15 Const OrderField_Scountry 16 Const OrderField_Phone 17 Const OrderField_Fax 18 Const OrderField Refer 19 Const OrderField_Shiptype 20 Const OrderField_Shipping 21 Const OrderField_Tax 22 Const OrderField_Subtotal 23 Const OrderField_Vattax 24 Const OrderField_Comments 25 Const OrderField_PONumber 26 Const OrderField_TaxExempt 27 Const OrderField_Oid 0 Const OrderField_MaxItems 28 Const OrderField_Email 29 Const OrderField_Cardnumber 30
45. i order set OrderCtx OrderField Fax 512 832 8901 Flag ApiDriver csi order set OrderCtx OrderField Comments No comments today Flag ApiDriver csi order set OrderCtx OrderField Cardnumber CStr card Flag ApiDriver csi order set OrderCtx OrderField ChargeType Chargetype Auth Flag ApiDriver csi order set OrderCtx OrderField Expmonth 12 Flag ApiDriver csi order set OrderCtx OrderField Expyear 01 Flag ApiDriver csi order set OrderCtx OrderField Email youremail Flag ApiDriver csi order set OrderCtx OrderField Result Result Good 2001 LinkPoint International Inc 20 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_order_set OrderCtx OrderField_Addrnum 111 price CDbl shirtprice itemtotal numshirts price Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set ItemCtx ItemField_Itemid T shirt 001 ItemCtx ItemField_Description T shirt of ClearCommerce Logo ItemCtx ItemField_Price price ItemCtx ItemField_Quantity CInt numshirts nn A Flag ApiDriver csi_option_set OptionCtx OptionField_Option Color Flag ApiDriver csi_option_set OptionCtx OptionField_Choice Red Flag ApiDriver csi_item_addoption ItemCtx OptionCtx if ApiDriver bStat lt gt Succeed Then txtError txtError amp csi_item_addoption amp ApiDriver csi util errorstr ApiDriver csi item er
46. i_client h from API 3 8 3 Request types possible for OrderField_Chargetype Const Chargetype_Auth 0 Const Chargetype_Sale 0 Const Chargetype_Preauth 1 Const Chargetype_Postauth 2 Const Chargetype_Credit 3 Const Chargetype_Voidsale 9 Const Chargetype_Error 0 Result types possible for OrderField_Result Const Result_Live 0 Const Result_Good 1 Const Result_Duplicate 2 Const Result_Decline 3 ESD types for ItemField_Esdtype Const Esdtype_None 0 Const Esdtype Softgood 1 Const Esdtype Key 2 OrderField t Const OrderField Oid 0 Const OrderField Userid 1 Const OrderField Bcompany 2 Const OrderField_Bcountry 3 Const OrderField_Bname 4 Const OrderField_Baddr1 5 Const OrderField Baddr2 6 Const OrderField_Bcity 7 Const OrderField_Bstate 8 Const OrderField_Bzip 9 Const OrderField_Sname 10 Const OrderField_Saddr1 11 Const OrderField_Saddr2 12 Const OrderField_Scity 13 Const OrderField_Sstate 14 Const OrderField_Szip 15 Const OrderField_Scountry 16 Const OrderField_Phone 17 Const OrderField_Fax 18 2001 LinkPoint International Inc 41 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const OrderField_Refer 19 Const OrderField_Shiptype 20 Const OrderField_Shipping 21 Const OrderField_Tax 22 Const OrderField_Subtotal 23 Const OrderField_Vattax 24 Const OrderField_Comments 25 Const OrderField PONumber 26 Const OrderField_T
47. ield Total 2 Const ShippingField Items 3 Const ShippingField Weight 4 Const ShippingField Carrier 5 Responses Const ShippingField R Total 6 TaxField t Const TaxField State 0 Const TaxField Zip 1 Const TaxField Total 2 Responses Const TaxField R Total 3 OptionField t Const OptionField Option 0 Const OptionField Choice 1 PbOrder t Const PbOrder Submit 0 Const PbOrder Modify 1 Const PbOrder Cancel 2 Const PbOrder Process 3 PeriodicField t Const PeriodicField Startdate 0 Const PeriodicField Periodicity 1 Const PeriodicField Installments 2 Const PeriodicField Threshold 3 Const PeriodicField Comments 4 CheckOrder t Const CheckOrder Submit 0 Const CheckOrder Void 1 CheckField_t Const CheckField_AccountType 0 Const CheckField_TransitRouting 1 Const CheckField_MICR 2 Const CheckField_CheckNumber 3 Const CheckField_Comments 4 Opaque contexts Dim OrderCtx Dim ItemCtx Dim OptionCtx Dim ReqCtx Dim ShippingCtx Dim TaxCtx 2001 LinkPoint International Inc 18 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Dim ApiDriver Set txtArray Server CreateObject Scripting Dictionary Function ProcessCard On Error Resume Next Local variable declarations Dim txtVersion Dim port Dim price Dim total Dim itemtotal Dim subtotal Dim taxtotal Dim esdfiles Err Clear Set ApiDriver Server CreateObject LpiCom_5_4
48. ight 34 gt Tax lt td gt lt td colspan 2 height 34 gt lt input type text size 20 name txtTax value lt GetValue txtTax gt gt lt td gt lt tr gt lt tr gt lt td gt Charge Total lt td gt lt td colspan 2 gt lt input type text size 20 name txtChargeTotal value lt GetValue txtChargeTotal gt gt lt td gt lt tr gt lt tr gt lt td gt Time lt td gt lt td colspan 2 gt lt input type text size 40 name txtTime value lt GetValue txtTime gt gt lt td gt lt tr gt lt tr gt 2001 LinkPoint International Inc 26 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt td gt Ref lt td gt lt td colspan 2 gt lt input type text size 20 name txtRef value lt GetValue txtRef gt gt lt td gt lt tr gt lt tr gt lt td gt Approved lt td gt lt td colspan 2 gt lt input type text size 40 name txtAppr value lt GetValue txtAppr gt gt lt td gt lt tr gt lt tr gt lt td height 24 gt Code lt td gt lt td height 24 colspan 2 gt lt input type text size 20 name txtCode value lt GetValue txtCode gt gt lt td gt lt tr gt lt tr gt lt td gt Errorl lt td gt lt td colspan 2 gt lt input type text size 60 name txtError value lt GetValue txtError gt gt lt td gt lt tr gt lt tr gt lt td gt Error2 lt td gt lt td co
49. ld_Itemid T shirt 001 ItemCtx ItemField_Description T shirt of ClearCommerce Logo ItemCtx ItemField_Price price ItemCtx ItemField_Quantity CInt numshirts ERA Flag ApiDriver csi option set OptionCtx OptionField Option Color Flag ApiDriver csi option set OptionCtx OptionField Choice Red Flag ApiDriver csi item addoption ItemCtx OptionCtx if ApiDriver bStat lt gt Succeed Then txtError txtError amp csi item addoption amp ApiDriver csi util errorstr ApiDriver csi item error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi option drop OptionCtx Flag ApiDriver csi order additem OrderCtx ItemCtx if ApiDriver bStat Succeed Then txtError txtError amp csi order additem amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi item clear ItemCtx price 14 50 itemtotal itemtotal numprogs price Flag ApiDriver csi_item_set ItemCtx ItemField_Itemid Game 033 Flag ApiDriver csi_item_set ItemCtx ItemField_Description Blast Em Game Software 2001 LinkPoint International Inc 46 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_item_set ItemCtx ItemField_Softfile file zip Flag ApiDriver csi_item_set ItemCtx ItemField_Serial Flag Api
50. lspan 2 gt lt input type text size 60 name txtErr value lt GetValue txtErr gt gt lt td gt lt tr gt lt tr gt lt td gt Order lt td gt lt td colspan 2 gt lt input type text size 40 name txtOrd value lt GetValue txtOrd gt gt lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt lt table gt lt form gt lt body gt lt html gt lt END IF gt 2001 LinkPoint International Inc 27 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Example 2B Periodic Billing File pb_processcard asp lt Created from ccapi_error h from API 3 8 3 Const Fail 0 Const Succeed 1 Created from ccapi_client h from API 3 8 3 Request types possible for OrderField_Chargetype Const Chargetype Auth 0 Const Chargetype Sale 0 Const Chargetype Preauth 1 Const Chargetype Postauth 2 Const Chargetype Credit 3 Const Chargetype Voidsale 9 Const Chargetype Error 0 Result types possible for OrderField Result Const Result Live 0 Const Result Good 1 Const Result Duplicate 2 Const Result Decline 3 ESD types for ItemField Esdtype Const Esdtype None 0 Const Esdtype Softgood 1 Const Esdtype Key 2 OrderField t Const OrderField Oid 0 Const OrderField Userid 1 Const OrderField Bcompany 2 Const OrderField_Bcountry 3 Const OrderField_Bname 4 Const OrderField Baddr1 5 Const OrderField_Badd
51. lt HEAD gt lt BODY gt form ACTION pb_ordertest asp METHOD post NAME MyForm1 gt lt center gt lt FONT size 6 gt lt LABEL gt ASP LCOM lt LABEL gt lt FONT gt lt center gt lt center gt lt FONT size 6 gt lt LABEL gt Periodic Billing 5 4 Ordertest Sample lt LABEL gt lt FONT gt lt center gt lt BR gt lt FONT size 4 gt lt LABEL gt Bname amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id bname type TEXT name bname value John Doe gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Credit Card amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id creditcard name creditcard value 4111111111111111 gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 gt lt LABEL gt Periodicity amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id periodicity type TEXT name periodicity value m1 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Threshold amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id threshold type TEXT name threshold value 3 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Installments amp nbsp amp nbsp lt INPUT id installments type TEXT name installments value 12 gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 gt lt LABEL gt T shirts amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp n
52. lt LABEL gt lt FONT gt lt BR gt 2001 LinkPoint International Inc 12 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt FONT size 4 gt lt LA BEL gt Credit Card amp nbsp lt INPUT id creditcard name creditcard value 4111111111111111 gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 gt lt LABEL gt Shirt Price amp nbsp amp nbsp amp nbsp lt INPUT id shirtprice type TEXT name shirtprice value 14 50 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt T shirts amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp SELECT id selectl name numShirts size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 gt lt LABEL gt Program Price amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id progprice type TEXT name progprice value 17 95 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Blast Em Software amp nbsp SELECT id select2 name numProg size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt P align center gt lt INPUT id submit name SubmitOrder type submit value Submit gt lt
53. ngCtx ShippingField_Items 2 Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Weight 1 00 Flag ApiDriver csi_shipping_set ShippingCtx ShippingField_Carrier 1 Flag ApiDriver csi_shipping_process ShippingCtx if ApiDriver bStat lt gt Succeed Then txtError csi_shipping_process ApiDriver csi_util_errorstr ApiDriver csi_shipping_error ShippingCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If shiptotal ApiDriver csi_shipping_get ShippingCtx ShippingField_R_Total txtShipTotal shiptotal Flag ApiDriver csi_order_set OrderCtx OrderField_Shipping shiptotal Flag ApiDriver csi_shipping_drop ShippingCtx price shiptotal subtotal Flag ApiDriver csi_tax_set TaxCtx TaxField_State CO Flag ApiDriver csi_tax_set TaxCtx TaxField_Zip 80219 Flag ApiDriver csi_tax_set TaxCtx TaxField_Total price Flag ApiDriver csi_tax_process TaxCtx if ApiDriver bStat lt gt Succeed Then txtError csi tax process ApiDriver csi util errorstr ApiDriver csi tax error TaxCtx txtArray Add txtError txtError 2001 LinkPoint International Inc 34 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Set ApiDriver nothing Exit Function End If taxtotal ApiDriver csi_tax_get TaxCtx TaxField_R_Total txtTax taxtotal Flag ApiDriver csi_order_set OrderCtx OrderField_Tax taxtotal Flag ApiDriver csi_tax_drop TaxCtx total subtotal
54. onst OrderField R Message 50 ReqField t Const RegField_Configfile 0 Const ReqField Keyfile 1 Const RegField_Appname 2 Const ReqField Host 3 Const ReqField Port 4 temField t Const ItemField_Itemid 0 Const ItemField Description 1 Const ItemField Price 2 Const ItemField Quantity 3 Const ItemField Softfile 4 Const ItemField Esdtype 5 Const ItemField Serial 6 Const ItemField MaxOptions 7 2001 LinkPoint International Inc 29 LinkPoint COM Object LCOM User Manual Version 1 1 0501 ShippingField_t Const ShippingField_Country 0 Const ShippingField_State 1 Const ShippingField_Total 2 Const ShippingField Items 3 Const ShippingField Weight 4 Const ShippingField Carrier 5 Responses Const ShippingField R Total 6 TaxField t Const TaxField State 0 Const TaxField Zip 1 Const TaxField Total 2 Responses Const TaxField R Total 3 OptionField t Const OptionField Option 0 Const OptionField Choice 1 PbOrder t Const PbOrder Submit 0 Const PbOrder Modify 1 Const PbOrder Cancel 2 Const PbOrder Process 3 PeriodicField t Const PeriodicField Startdate 0 Const PeriodicField Periodicity 1 Const PeriodicField Installments 2 Const PeriodicField Threshold 3 Const PeriodicField Comments 4 CheckOrder t Const CheckOrder Submit 0 Const CheckOrder Void 1 CheckField t Const CheckField_AccountType 0 Const CheckField_TransitR
55. outing 1 Const CheckField MICR 2 Const CheckField_CheckNumber 3 Const CheckField_Comments 4 Opaque contexts Dim OrderCtx Dim ItemCtx Dim OptionCtx Dim RegCtx Dim ShippingCtx 2001 LinkPoint International Inc 30 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Dim TaxCtx Dim ApiDriver Set txtArray Server CreateObject Scripting Dictionary Function ProcessCard On Error Resume Next Local variable declarations Dim txtVersion Dim port Dim price Dim total Dim itemtotal Dim subtotal Dim taxtotal Dim esdfiles Dim Periodicity Dim Installments Dim Threshold Dim pbtype Err Clear Set ApiDriver Server CreateObject LpiCom_5_4 LinkPointCom if Err Number lt gt 0 Then Response Write Error creating object amp Err Description e lt BR gt Exit Function End if Dim bname Dim card Dim numShirts Dim numProgs bname Request Form bname card Request Form creditcard numshirts Request Form numShirts numprogs Request Form numProg Periodicity Request Form periodicity Installments Request Form installments Threshold Request Form threshold txtVersion ApiDriver csi_util_version txtArray Add txtVersion txtVersion 2001 LinkPoint International Inc 31 LinkPoint COM Object LCOM User Manual Version 1 1 0501 OrderCtx ApiDriver csi_order_alloc ItemCtx ApiDriver csi_item_alloc OptionCtx _ ApiDriver csi option alloc
56. r csi option set OptionCtx OptionField Choice CStr item attr_valuel Flag ApiDriver csi item addoption ItemCtx OptionCtx If ApiDriver bStat lt gt Succeed Then txtError txtError amp csi_item_addoption amp ApiDriver csi util errorstr ApiDriver csi item error OrderCtx orderform purchase errors Add txtError End If Else Flag ApiDriver csi item set ItemCtx ItemField Softfile CStr item product name Flag ApiDriver csi item set ItemCtx ItemField Serial Flag ApiDriver csi item set ItemCtx ItemField Esdtype Esdtype Softgood End If Flag ApiDriver csi order additem OrderCtx ItemCtx if ApiDriver bStat Succeed Then txtError txtError amp csi order additem amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx orderform purchase errors Add txtError End If 2001 LinkPoint International Inc 56 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Flag ApiDriver csi_item_clear ItemCtx Veesesesese esee e eee ee e e eee ee e e eee ee e e ee e ee e e eee ee e e eee ee e e ee e ee e e eee ee e e eee ee e e eee eee e eee Accumulate the subtotal for all items Ves see e see fe e e fe e e fe e e fe e e e e e e e de e e e e fe e e fe e e fe e e fe e e fe e e fe e e e e ee e e e fe e e fe e e fe e e fe e e fe e e fe e e e e ee e dee fe eee subtotal subtotal item Quantity itemprice Next Flag ApiDriver csi order set OrderCtx OrderField Subtotal CDbl subtotal
57. r2 6 Const OrderField_Bcity 7 Const OrderField_Bstate 8 Const OrderField Bzip 9 Const OrderField Sname 10 Const OrderField_Saddr1 11 Const OrderField_Saddr2 12 Const OrderField_Scity 13 Const OrderField_Sstate 14 Const OrderField Szip 15 Const OrderField_Scountry 16 Const OrderField Phone 17 Const OrderField Fax 18 2001 LinkPoint International Inc 28 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Const OrderField_Refer 19 Const OrderField_Shiptype 20 Const OrderField_Shipping 21 Const OrderField_Tax 22 Const OrderField_Subtotal 23 Const OrderField_Vattax 24 Const OrderField_Comments 25 Const OrderField PONumber 26 Const OrderField TaxExempt 27 Const OrderField_MaxItems 28 Const OrderField Email 29 Const OrderField_Cardnumber 30 Const OrderField_Expmonth 31 Const OrderField_Expyear 32 Const OrderField Chargetype 33 Const OrderField Chargetotal 34 Const OrderField_Referencenumber 35 Const OrderField Result 36 Const OrderField_Addrnum 37 Const OrderField Ip 38 Const OrderField MercType 39 Const OrderField_SwitchStartDate 40 Const OrderField_SwitchIssueNumber 41 Responses Const OrderField_R_Time 42 Const OrderField R Ref 43 Const OrderField R Approved 44 Const OrderField_R_Code 45 Const OrderField_R_Ordernum 46 Const OrderField R Error 47 Const OrderField_R_FraudCode 48 Const OrderField_R_AuthResponse 49 C
58. rCtx ReqCtx if ApiDriver bStat Succeed Then txtError 7 csi order setrequest amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi tax setrequest TaxCtx ReqCtx Flag ApiDriver csi shipping setrequest ShippingCtx ReqCtx Flag ApiDriver csi order set OrderCtx OrderField_Userid nobody Flag ApiDriver csi order set OrderCtx OrderField Bname CStr bname Flag ApiDriver csi order set OrderCtx OrderField Bcompany ClearCommerce Flag ApiDriver csi order set OrderCtx OrderField_Baddr1 CStr baddr1 Flag ApiDriver csi order set OrderCtx OrderField Bcity CStr bstate Flag ApiDriver csi order set OrderCtx OrderField_Bstate CStr bcity Flag ApiDriver csi order set OrderCtx OrderField Bzip CStr bzip Flag ApiDriver csi order set OrderCtx OrderField Bcountry US Flag ApiDriver csi order set OrderCtx OrderField Sname John Q Public Flag ApiDriver csi order set OrderCtx OrderField Saddr1 11500 Metric Blvd Suite 300 Flag ApiDriver csi order set OrderCtx OrderField Scity Denver Flag ApiDriver csi order set OrderCtx OrderField Sstate CO Flag ApiDriver csi order set OrderCtx OrderField Szip 80219 Flag ApiDriver csi order set OrderCtx OrderField Scountry US Flag ApiDriver csi order set OrderCtx OrderField Phone 512 832 0132 Flag ApiDriver cs
59. rder in long item HRESULT STDMETHODCALLTYPE csi order alloc retval out long __RPC_FAR order HRESULT STDMETHODCALLTYPE csi_order_clear in long order HRESULT STDMETHODCALLTYPE csi_order_drop in long order HRESULT STDMETHODCALLTYPE csi_order_get in long order in long order_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_order_getesd in long order retval out VARIANT __RPC_FAR esd HRESULT STDMETHODCALLTYPE csi_order_process in long order HRESULT STDMETHODCALLTYPE csi order sett in long order in long order field in VARIANT field HRESULT STDMETHODCALLTYPE csi order setrequest in long order in long req HRESULT STDMETHODCALLTYPE csi req alloc retval out long _ RPC_FAR req HRESULT STDMETHODCALLTYPE csi_req_clear in long req HRESULT STDMETHODCALLTYPE csi_req_drop in long req 2001 LinkPoint International Inc 4 LinkPoint COM Object LCOM User Manual Version 1 1 0501 HRESULT STDMETHODCALLTYPE csi_req_error in long reg retval out long _ RPC_FAR err HRESULT STDMETHODCALLTYPE csi_req_get in long req in long req_field retval out VARIANT __RPC_FAR field HRESULT STDMETHODCALLTYPE csi_req_set in long req in long req_field in
60. river csi_order_set OrderCtx OrderField_Expyear 01 OrderCtx OrderField_Fax 512 832 8901 OrderCtx OrderField_ Comments No comments today Flag ApiDriver csi_order_set OrderCtx OrderField_Email youremail Flag ApiDriver csi_order_set OrderCtx OrderField_Result Result_Good Flag ApiDriver csi_order_set OrderCtx OrderField_Addrnum 111 price 17 95 itemtotal numshirts price Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set Flag ApiDriver csi_item_set ItemCtx ItemField_Itemid T shirt 001 ItemCtx ItemField_Description T shirt of ClearCommerce Logo ItemCtx ItemField_Price price ItemCtx ItemField_Quantity CInt numshirts EEE Flag ApiDriver csi_option_set OptionCtx OptionField_Option Color Flag ApiDriver csi_option_set OptionCtx OptionField_Choice Red Flag ApiDriver csi_item_addoption ItemCtx OptionCtx if ApiDriver bStat lt gt Succeed Then txtError txtError amp csi_item_addoption amp ApiDriver csi util errorstr ApiDriver csi item error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi option drop OptionCtx Flag ApiDriver csi order additem OrderCtx ItemCtx if ApiDriver bStat Succeed Then txtError txtError amp csi order additem amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError
61. ror OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi option drop OptionCtx Flag ApiDriver csi order additem OrderCtx ItemCtx if ApiDriver bStat Succeed Then txtError txtError amp csi order additem amp ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function End If Flag ApiDriver csi item clear ItemCtx price CDbl progprice itemtotal itemtotal numprogs price Flag ApiDriver csi_item_set ItemCtx ItemField_Itemid Game 033 Flag ApiDriver csi_item_set ItemCtx ItemField_Description Blast Em Game Software Flag ApiDriver csi_item_set ItemCtx ItemField_Softfile file zip Flag ApiDriver csi_item_set ItemCtx ItemField_Serial Flag ApiDriver csi_item_set ItemCtx ItemField_Esdtype Esdtype_Softgood Flag ApiDriver csi_item_set ItemCtx ItemField_Price price Flag ApiDriver csi_item_set ItemCtx ItemField_Quantity CInt numprogs Flag ApiDriver csi order additem OrderCtx ItemCtx if ApiDriver bStat Succeed Then txtError txtError amp csi order additem ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing 2001 LinkPoint International Inc 21 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Exit Function End If Flag ApiDriv
62. rpreting this Agreement This Agreement shall be governed by and construed under California law as such law applies to agreements between California residents entered into and to be performed entirely within California except as governed by Federal law This Agreement will not be governed by the United Nations Convention of Contracts for the International Sale of Goods the application of which is hereby expressly excluded LinkPoint International Inc 5310 Derry Avenue Suite W Agoura Hills California 91301 Table of Contents ABOUT THIS MANUAL E 1 INTRODUCTION nie 2 METHODS AND FUNCTIONALITY aan iii 3 Methods TT 3 Functionality aaa 8 INSTALLATION rimini at tartare 9 Pre Installation System Requirements d allori eek 9 Installing LCONT er 9 PRODUCT INTEGRATION iaia 10 SAMPLE ERT 11 ACTIVE SERVER PAGE ASP SAMPLES 12 Example 1A APlFile api ordertest asp eat a a 12 Example 1B API File api_processcard asp 16 Example 2A Periodic Billing File pbs Ordertes tasses consid 25 Example 2B Periodic Billing File pb processcard asp ii 28 Example 3A VirtualCheck File vc ordertest asp sise 38 Example3B VirtualCheck File vc processcard asp ss 41 SITE SERVER COMMERCE EDITION PAYMENT COMPONENT SAMPLE eren 51 APPRENDE A ipa 59 Deliverables ss dat anna Eee 59 Purchasing Contact NONA NON ladino eat 99 APFPENDIB allea 60 RR te ET POLE E 60 2001 LinkPoint International Inc i LinkPoint COM Object
63. rror Set ApiDriver nothing Exit Function Else txtTime ApiDriver csi order get OrderCtx OrderField R Time txtRef ApiDriver csi order get OrderCtx OrderField R Ref txtAppr ApiDriver csi order get OrderCtx OrderField R Approved txtCode ApiDriver csi order get OrderCtx OrderField R Code txtErr ApiDriver csi order get OrderCtx OrderField R Error txtOrd ApiDriver csi order get OrderCtx OrderField_R_Ordernum End If esdfiles ApiDriver csi order getesd OrderCtx nLBound LBound esdfiles nUBound UBound esdfiles If ApiDriver bStat lt gt Succeed Then txtError csi_order_process ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function Else For i nLBound to nUBound file esdfiles i If file lt gt AND file lt gt Could not create URL Then Response Write ESD amp i amp amp file amp lt BR gt End If Next End If When debugging the COM object comment out the next line Flag ApiDriver csi order drop OrderCtx Flag ApiDriver csi req drop ReqCtx txtArray Add txtError txtError txtArray Add txtTime txtTime txtArray Add txtRef txtRef txtArray Add txtAppr txtAppr txtArray Add txtCode txtCode txtArray Add txtErr txtErr txtArray Add txtOrd txtOrd txtArray Add txtTax txtTax txtArray Add txtChargeTotal txtChargeTotal txtArray Add txtShipTotal txtShipTotal Set
64. s Agreement you shall immediately discontinue the use of the Software and derivative works You may also terminate this Agreement at any time by destroying the Software derivative works if any and Documentation and all copies thereof INDEMNIFICATION If you distribute the Software in violation of this Agreement you agree to indemnify hold harmless and defend LinkPoint from and against any claims or lawsuits including attorneys fees that arise or result from the use or distribution of the Software in violation of this Agreement EXPORT CONTROLS You may not download or otherwise export or re export the Software or any underlying information or technology except in full compliance with all United States and other applicable laws and regulations In particular but without limitation none of the Software or underlying information or technology may be downloaded or otherwise exported or re exported i into or to a national or resident of Cuba Haiti Iraq Libya Yugoslavia North Korea Iran Syria or any other country to which the U S has embargoed goods or ii to anyone on the U S Treasury Department s list of Specially Designated Nationals or the U S Commerce Department s Table of Deny Orders By downloading or using the Software you are agreeing to the foregoing and you are representing and warranting that you are not located in under the control of or a national or resident of any such country or on any such list GOVERNMENT USE
65. si_tax_set in long tax in long tax_field in VARIANT field HRESULT STDMETHODCALLTYPE csi_tax_setrequest in long tax in long req HRESULT STDMETHODCALLTYPE csi_util_errorstr in long err retval out VARIANT __RPC_FAR str HRESULT STDMETHODCALLTYPE csi_util_version retval out double __RPC_FAR version HRESULT STDMETHODCALLTYPE csi_util_version_string retval out double __RPC_FAR version_string HRESULT STDMETHODCALLTYPE csi order error in long order retval out long _ RPC FAR err HRESULT STDMETHODCALLTYPE csi periodic alloc retval out long __RPC_FAR periodic HRESULT STDMETHODCALLTYPE csi_periodic_clear in long periodic HRESULT STDMETHODCALLTYPE csi_periodic_drop in long periodic HRESULT STDMETHODCALLTYPE csi periodic get in long periodic in long periodic field retval out VARIANT RPC FAR field HRESULT STDMETHODCALLTYPE csi periodic sett in long periodic in long periodic field in VARIANT field HRESULT STDMETHODCALLTYPE csi pborder alloc 2001 LinkPoint International Inc 6 LinkPoint COM Object LCOM User Manual Version 1 1 0501 retval out long RPC FAR pborder HRESULT STDMETHODCALLTYPE csi_pborder_drop in long pborder HRESULT STDMETHODCALLTYPE csi_pborder_error in
66. t BR gt lt FONT size 4 gt lt LABEL gt Check No amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id checkno type TEXT name checkno value 1001 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Transit Routing amp nbsp amp nbsp lt INPUT id route type TEXT name route value 321175038 gt lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt MICR amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt INPUT id micr type TEXT name micr value T321175038T1001001254870 gt lt LABEL gt lt FONT gt lt BR gt lt BR gt lt FONT size 4 gt lt LABEL gt T shirts amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp amp nbsp lt SELECT id select1 name numShirts size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt 2001 LinkPoint International Inc 38 LinkPoint COM Object LCOM User Manual Version 1 1 0501 lt LABEL gt lt FONT gt lt BR gt lt FONT size 4 gt lt LABEL gt Blast Em Software amp nbsp lt SELECT id select2 name numProg size 1 gt lt OPTION value 1 selected gt 1 lt OPTION gt lt OPTION value 2 gt 2 lt OPTION gt lt OPTION value 3 gt 3 lt OPTION gt lt SELECT gt lt LABEL gt lt FONT gt lt BR gt lt P align center gt lt INPUT id submit name SubmitOrder type
67. t td colspan 2 gt lt input type text size 20 name txtRef value lt GetValue txtRef gt gt lt td gt lt tr gt lt tr gt lt td gt Approved lt td gt lt td colspan 2 gt lt input type text size 40 name txtAppr value lt GetValue txtAppr gt gt lt td gt lt tr gt lt tr gt lt td height 24 gt Code lt td gt lt td height 24 colspan 2 gt lt input type text size 20 name txtCode value lt GetValue txtCode gt gt lt td gt lt tr gt lt tr gt lt td gt Errorl lt td gt lt td colspan 2 gt lt input type text size 60 name txtError value lt GetValue txtError gt gt lt td gt lt tr gt lt tr gt lt td gt Error2 lt td gt lt td colspan 2 gt lt input type text size 60 name txtErr value lt GetValue txtErr gt gt lt td gt lt tr gt lt tr gt lt td gt Order lt td gt lt td colspan 2 gt lt input type text size 40 name txtOrd value lt GetValue txtOrd gt gt lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt lt table gt lt form gt lt body gt lt html gt lt END IF gt 2001 LinkPoint International Inc 40 LinkPoint COM Object LCOM User Manual Version 1 1 0501 Example 3B VirtualCheck File vc_processcard asp lt Created from ccapi_error h from API 3 8 3 Const Fail 0 Const Succeed 1 Created from ccap
68. t that line items including attributes are particular to different stores This VB Script file will then have to be added to the order payment pipeline OPP as a scriptor component in the payment section of the order pipeline LA Re e e see eee eee e eee eee e e ee eee e e ee eee e e eee ProcessCard Pipeline Script This script processes credit cards from a Site Server Commerce Edition order processing pipeline Vesese eee dede e e e eee eee e e e eee eee e eee eee eee eee Sub MSCSOpen config Initialization code goes here Not used in this script no startup code End Sub Sub MSCSClose Clean up code goes here Not used in this script no cleanup code End Sub Function MSCSExecute config orderform context flags LR Re sese sese eee eee e eee ee e e e ee e e e e e ee e e e e e ee e ee e e ee e ee e e eee ee e e eee eee eee This function is called by the Purchase pipeline which passes the following objects config a dictionary containing custom parameters orderform the order form object i context a dictionary containing references to objects and data that the site stores in the Application object flags Reserved This parameter should be zero Re hehe e e eee e ee e e e ee ee e e e ee eee e e ee e e e e e ee e ee e e ee e ee e e eee ee e e eee eee eee On Error Resume Next Created from ccapi error h from API3 8 Const Fail 0 Const Succeed 1 Request types possible for OrderField_C
69. und esdfiles If ApiDriver bStat lt gt Succeed Then txtError csi_order_process ApiDriver csi util errorstr ApiDriver csi order error OrderCtx txtArray Add txtError txtError Set ApiDriver nothing Exit Function Else For i nLBound to nUBound file esdfiles i If file lt gt AND file lt gt Could not create URL Then Response Write ESD amp i amp amp file amp lt BR gt End If Next End If When debugging the COM object comment out the next line Flag ApiDriver csi order drop OrderCtx Flag ApiDriver csi req drop ReqCtx txtArray Add txtError txtError txtArray Add txtTime txtTime txtArray Add txtRef txtRef txtArray Add txtAppr txtAppr txtArray Add txtCode txtCode txtArray Add txtErr txtErr txtArray Add txtOrd txtOrd txtArray Add txtTax txtTax txtArray Add txtChargeTotal txtChargeTotal txtArray Add txtShipTotal txtShipTotal Set ApiDriver nothing End Function Function GetValue txtField if txtArray Exists txtField then GetValue txtArray Item txtField end if 2001 LinkPoint International Inc 49 LinkPoint COM Object LCOM User Manual Version 1 1 0501 End Function gt 2001 LinkPoint International Inc 50 LinkPoint COM Object LCOM User Manual Version 1 1 0501 SITE SERVER COMMERCE EDITION PAYMENT COMPONENT SAMPLE To use this sample the VB Script will have to be edited in the area of line item processing due to the fac
Download Pdf Manuals
Related Search
Related Contents
Mode d`emploi Trasduttore di forza Istruzioni per l`uso Q-See QD28194W surveillance camera 取扱説明書 取扱説明書 FOMA P905i 日本語 dreamGEAR TriView Lenovo ThinkCentre M83 Tiny Sony VGN-S67GP/S User's Manual Panasonic WV-NF302 Upgrade Guide CyberPower Systems 649532015856 Power Supply User Manual Copyright © All rights reserved.
Failed to retrieve file