By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

800a03f2 error on "Public Class PREAUTH"

P: 3
Hello, all. I'm implementing LinkPoint API on my site, but I have an error coming up in their code, and I'm wondering if anyone could give me any guidance on this one.

Here is the specific error:

Expand|Select|Wrap|Line Numbers
  1. Microsoft VBScript compilation  error '800a03f2'
  2.  
  3. Expected identifier
  4.  
  5. /fsboms/newuser.asp, line 141
  6.  
  7. Private Class PREAUTH
  8. --------^
  9.  
Aaargh! It's such a simple line! Here's the actual code:

Expand|Select|Wrap|Line Numbers
  1. Public Class PREAUTH
  2.     Inherits LinkPointTxn_Page
  3.  
  4. #Region " Web Form Designer Generated Code "
  5.  
  6.     'This call is required by the Web Form Designer.
  7.     <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
  8.  
  9.     End Sub
  10.  
  11.     Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
  12.         'CODEGEN: This method call is required by the Web Form Designer
  13.         'Do not modify it using the code editor.
  14.         InitializeComponent()
  15.     End Sub
  16.  
  17. #End Region
  18.  
  19.     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  20.         'Put user code to initialize the page here
  21.         If IsPostBack Then
  22.             ' Parse form data
  23.             ParseFormData()
  24.             ' process order
  25.             ProcessOrder()
  26.         End If
  27.  
  28.     End Sub
  29.  
  30.     Private Sub ProcessOrder()
  31.  
  32.         ' create order
  33.         Dim op As LinkPointTransaction.LPOrderPart
  34.         Dim order As LinkPointTransaction.LPOrderPart
  35.  
  36.         order = LinkPointTransaction.LPOrderFactory.createOrderPart("order")
  37.         ' create a part we will use to build the order
  38.         op = LinkPointTransaction.LPOrderFactory.createOrderPart()
  39.  
  40.         ' Build 'orderoptions'
  41.         ' For a test, set result to GOOD, DECLINE, or DUPLICATE
  42.         op.put("result", "GOOD")
  43.         op.put("ordertype", "PREAUTH")
  44.         ' add 'orderoptions to order
  45.         order.addPart("orderoptions", op)
  46.  
  47.  
  48.         ' Build 'merchantinfo'
  49.         op.clear()
  50.         op.put("configfile", configfile)
  51.         ' add 'merchantinfo to order
  52.         order.addPart("merchantinfo", op)
  53.  
  54.  
  55.         ' Build 'creditcard'
  56.         op.clear()
  57.         op.put("cardnumber", cardnumber)
  58.         op.put("cardexpmonth", expmonth)
  59.         op.put("cardexpyear", expyear)
  60.         ' add 'creditcard to order
  61.         order.addPart("creditcard", op)
  62.  
  63.         ' Build 'billing'
  64.         op.clear()
  65.         op.put("addrnum", baddrnum)
  66.         op.put("zip", bzip)
  67.         ' add 'billing to order
  68.         order.addPart("billing", op)
  69.  
  70.         ' Build 'payment'
  71.         op.clear()
  72.         op.put("chargetotal", total)
  73.         ' add 'payment to order
  74.         order.addPart("payment", op)
  75.  
  76.  
  77.         ' create transaction object    
  78.         LPTxn = New LinkPointTransaction.LinkPointTxn()
  79.  
  80.         ' get outgoing XML from 'order' object
  81.         Dim outXml As String = order.toXML()
  82.  
  83.         ' Call LPTxn
  84.         Dim resp As String = LPTxn.send(keyfile, host, port, outXml)
  85.  
  86.         'Store transaction data on Session and redirect
  87.         Session("outXml") = outXml
  88.         Session("resp") = resp
  89.         Server.Transfer("status.aspx")
  90.     End Sub
  91.  
  92. End Class
  93.  
Hmmm...I don't know how to solve that. Any assistance would be greatly appreciated.

Thanks very much.
Nov 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: 3
This post is in the wrong section. Sorry. I reposted it here:

http://www.thescripts.com/forum/showthread.php?p=2228549
Nov 28 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.