Wrox Programmer Forums
|
ASP E-commerce As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP E-commerce section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 23rd, 2003, 11:23 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default DATACASH API / Chapter 13

Hi all,

i'm working through the Begininng ASP.Net E-Commerce wrox book, using the actual examples and code samples downloaded and i've got to the stage where i'm adding the functionality for authorising and processing credit cards to the application - thats chapter 13. If im at the shopping cart and i select the 'place order' click button, and the payment processing begins, i receive the error message :

An error has occured during the processing of your order.

Details: Error occured, order aborted. Details mailed to administrator.

If you have an enquiry regarding this message please e-mail [email protected]

Back to shop

The email sent to the administrator contains the error message :

Message: Error occured while checking funds.
Source: 1
Order ID: 73

At the orders admin page, Order 73 auditing shows the following :

order status is :
73 22/07/2003 22:39:00 Awaiting confirmation of funds 3 user1


the auditing shows the following :

22/07/2003 22:38:31 Order Processor started. 10000
22/07/2003 22:38:31 PSInitialNotification started. 20000
22/07/2003 22:38:32 Notification e-mail sent to customer. 20002
22/07/2003 22:38:32 PSInitialNotification finished. 20001
22/07/2003 22:38:32 PSCheckFunds started. 20100
22/07/2003 22:38:34 Order Processing error occured. 10002
22/07/2003 22:38:34 Order Processor finished. 10001


So to find out where the problem is, i walked through the code, and i found that this is last line of code executed before we attempt to catch an error. The error occurs in DataCashRequest.VB -

serializer As XmlSerializer = _
              New XmlSerializer(GetType(DataCashRequest))

At this point, i'm stuck, and dont have a clue how to debug any further and am no closer to finding out why this happens?

Can anyone help me to determine what is the cause of this error, or how to debug any further.

In walking through the code, with the locals window open, i see the following :

PS Check Funds
_currentCustomer = _processor.CurrentCustomer

    AuthCode <error: an exception of type: {System.InvalidCastException} occurred> Object
    Reference <error: an exception of type: {System.InvalidCastException} occurred> Object



PSCheckFunds
Request.transactions.txndetails

    Xml <error: an exception of type: {System.IO.FileNotFoundException} occurred> Object


i really dont know where to take this from here - i've checked the code, and it is as it should be when compared to the download.

Any help would be greatly appreciated

Cheers

Steelo





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 13 bwoll BOOK: Beginning Access 2003 VBA 1 June 7th, 2007 03:57 PM
ASP.NET E-Commerce - Datacash API Problems steelo All Other Wrox Books 1 October 7th, 2005 11:57 PM
Chapter 13 ElMorenito BOOK: Beginning ASP 3.0 0 January 14th, 2005 02:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.