Monday, December 27, 2010

Knet e24paymentpiper.dll errors

Welcome.....

If you have reached this post then you must be frustrated with the numerous errors when trying to implement the e24paymentpipe.dll.

there are not much documents available online as well as this payment gateway is specific to kuwait banking system.

this is a common error
Retrieving the COM class factory for component with CLSID {78EEF9EE-38E9-11D5-9B13-00E0B8184571} failed due to the following error: 80070005

to successfully implement this dll, do the following:

1) Upload e24paymentpipe.dll to the bin folder on your hosting server
2) Register this dll on the system (ask your hosting provider to do this)
3) Assign ASP.NET rights to this e24paymentpipe.dll (ask your hosting provider to do this)
4) Create a folder named "Resource"
5) Upload the file "resource.cgn" to the "Resource" folder
6) Assign ASP.NET rights to this folder (ask your hosting provider to do this)

Here are the changes you need to make in your test code:

=====start of code===========

<%

string product, price, qty, total, name, address, postal; // Declaration of variables
e24PaymentPipeLib.e24PaymentPipeCtlClass MyObj;
MyObj = new e24PaymentPipeLib.e24PaymentPipeCtlClass(); // Create an instance of the dll object

total = Request.QueryString["total"];
try
{

MyObj.Action = "1"; // Purchase Transaction
MyObj.Amt = "100"; // <----This is the amount i entered for testing, The amount of purchase
MyObj.Currency = "414"; // KD Currency
MyObj.Language = "USA"; // Payment Page Language
MyObj.ResponseUrl = "https://YourDomainName.com/Response.aspx"; // Your response URL where you will be notified with of transaction response
MyObj.ErrorUrl = "https://YourDomainName.com/Error.aspx"; //
MyObj.TrackId = (new Random().Next(10000000) + 1).ToString(); // You should create a new unique track ID for each transaction
MyObj.ResourcePath = @"CompletePath\Resource\"; // <---Make sure you have the right path to this folder, Directory to your resource.cgn ending with \
MyObj.Alias = "yourwebsitealias"; // Alias of the plug-in, case-sensitive
MyObj.Udf1 = "User Defined Field 1";
MyObj.Udf2 = "User Defined Field 2";
MyObj.Udf3 = "User Defined Field 3";
MyObj.Udf4 = "User Defined Field 4";
MyObj.Udf5 = "User Defined Field 5";

//Perform the payment initilization

====end of code========

If your hosting provider cannot help you with this then try this hosting provider, it has been around since 2001 and provides Business class webhosting http://www.hostingguru.com or write to me and i can assist you with the hosting and code.

thanks

Mehdi