I need to maintain the amount variable so that it contains the sum of all the amount on which the customer is than validated. Any ideas on this:
Make sure you have:
amount += Convert.ToInt64(Session["Charge"]);Session["Charge"] = amount;
if(!(service.ValidateData(cardNumber,firstName,lastName,expireDate,amount)))
{
throw new ApplicationException();
}
using System.Web;in your class file, and then you should be able to access Session in formation by using:
HttpContext.Current.Session["Charge"]HTH...
Chris
Thanks a ton man :D
0 comments:
Post a Comment