473,609 Members | 1,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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: objectCOMpurcha seClass.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.COMpur chaseClass objWP = newWorldPay.COM purchaseClass() ;
objWP.init("");
objWP.setInstal lationId(iInsta llationID);
objWP.setOrderI d(psOrderID);
objWP.setShoppe rId(psShopperID );
objWP.setCurren cyISOCode(sCurr encyISOCode);
objWP.setAmount (pdblAmount);
//objWP.setAuthMo de(objWP.AUTHMO DE_full);
objWP.setValidD ates(lsTransact ionStartTime,ls TransactionExpi ryTime);
objWP.setTestMo de(iTestMode); //100 is testMode
objWP.process() ;

if (objWP.hadError ())
{
while (objWP.hasMoreE rrors())
{
lsErrorMessage += objWP.getNextEr ror() + ";";
}
throw new Exception(lsErr orMessage);
}
object objTest = null;
//object objTest2 = new object;
objWP.produce(o bjTest);
Many thanks,

--------------------------------
From: Andy Everett

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

<Id>0gSjBDe6902 yLmXTFyDvKg==</Id>
Nov 18 '05 #1
0 1632

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1436
by: grahamhe | last post by:
Hi, I am writing a script that requires two actions performed on the same page; 1) upload pictures and store them on the server & 2) Send all of the variables from the WebForm to the WorldPay servers via the POST method. I am aware of the Server.Transfer and Response.Redirect methods but neither of these will do what I want. Are there any soluitions out there in C# that I can used to do this easily (running out of time on this...
0
1090
by: Rudi Ahlers | last post by:
Has anyone used Worldpay for E-Commerce usage before? And if so, what experiences have you had with them, integrating it into your / a client's website? I need to setup an E-commerce website for a client, and they came highly recommended. Any comments would be appreciated -- Kind Regards Rudi Ahlers
0
926
by: Rudi Ahlers | last post by:
Has anyone used Worldpay for E-Commerce usage before? And if so, what experiences have you had with them, integrating it into your / a client's website? I need to setup an E-commerce website for a client, and they came highly recommended. Any comments would be appreciated -- Kind Regards Rudi Ahlers
0
3216
by: Anthony | last post by:
Hi all, I am just trying to set up a form post to worldppay and finding it surprisingly difficult.. What i would like is to gather all of the variables needed in c# codebehind and then send them along to worldpay along with the user.. Basically i dont want the user to have to submit a button it will do it automatically.. I have followed this code and i think it posts the data but wont take the user to the worldpay page as well
2
1657
by: Richard Brooks | last post by:
Is anyone using a payment routine withing their own php site ? I'd assume a MySql database is needed to remember days paid for and a date/time counter against cost per day but are there more specific details that one can learn before paying for an account ? I've tried emailing WorldPay for more specific details so that I can get my routines such as redirections worked out properly but they don't seem to reply and their tutorials are...
2
2956
by: michdoh | last post by:
HI all I wondered if anyone can give me some advice on wow to deal with the call-back process generated by Worldpay. My understanding is that after a transaction Worldpay will send the result's to a specified URL. All of the scripts I've looked at parse the query string and display the data onto a web-page, which obviously renders a page, as there is no one to read this and it does not go to the client I'm not sure what use these...
6
3334
by: Angelos | last post by:
Hello, For long time now I am trying to POST some variables from a form to a script and then that script POST them to another External page or payment gateway like worldpay. The reason I want to do that is because I want the user to enter his details in my website and then post them in Worldpay and continue any other steps he has to do to pay and then ofcourse using the callback function right back to the database if the transaction...
0
2797
by: sachindhake | last post by:
Hey Friends, I am developing a ASP.Net web application for one of our clients, which requires WorldPay payment integration. I have gone through the documentation, guides available on WorldPay support website, but still have some confusion, as how to integrate the payment gateway in my web application using C#. I have few question, any help would be appreciated:
1
2015
by: sajit | last post by:
Hi folks, Currently I am developing a shopping cart in which i need worldpay integartion. I also want customer to be redirected to my web site after transaction. Worldpay also provide default pages for that purpose but i need a customized page on which customer will be redirected after transaction. So do any one have a code snippet which can assist me in integration. Any help is appreciated.
0
8130
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8541
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8222
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7002
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5510
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4021
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.