468,548 Members | 1,858 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,548 developers. It's quick & easy.

WorldPay Integration

Has anybody had experience of integrating with WorldPay using C#please? I have rewritten the example asp code in C#/ASP.NET. Every aspect of this has been a success except one. Whencalling the produce method on the WorldPay object I am asked tosupply an object parameter [method definition: objectCOMpurchaseClass.produce (ref object Parameter0)]. Obviouslythis does not happen within ASP. I have tried passing both'new' and 'null' objects neither works. In the case of 'null'it appears as if the WorldPay DLL has been written in a way thatdoes not accept a null parameter. Does anybody know what mustbe passed. I am using:

WorldPay.COMpurchaseClass objWP = newWorldPay.COMpurchaseClass();
objWP.setValidDates(lsTransactionStartTime,lsTrans actionExpiryTime);
objWP.setTestMode(iTestMode); //100 is testMode

if (objWP.hadError())
while (objWP.hasMoreErrors())
lsErrorMessage += objWP.getNextError() + ";";
throw new Exception(lsErrorMessage);
object objTest = null;
//object objTest2 = new object;
Many thanks,

From: Andy Everett

Posted by a user from .NET 247 (http://www.dotnet247.com/)

Nov 18 '05 #1
0 1484

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rudi Ahlers | last post: by
reply views Thread by Rudi Ahlers | last post: by
reply views Thread by Anthony | last post: by
2 posts views Thread by Richard Brooks | last post: by
1 post views Thread by sajit | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.