Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Worldpay - html coding - anyone? (https://www.cableforum.uk/board/showthread.php?t=33650847)

Mr Angry 02-06-2009 23:41

Worldpay - html coding - anyone?
 
Chaps / chapettes,

Can anyone tell me how to integrate a "drop down" box (single selection) into a form that submits to WorldPay?

Any help would be very much appreciated.

punky 03-06-2009 00:21

Re: Worldpay - html coding - anyone?
 
Without me reading through all the Worldpay API (and this time of night, you've got no chance :p: ) i'm guessing you would just do a standard dropdown box and the it will be included in the form by its name.

something like this maybe?

Code:

<select name="worldpay_name">
<option value="Val1">Value 1</option>
<option value="Val2">Value 2</option>
</select>

If it has to be a specific name for Worldpay then you can set it. Usually payment processors build the transaction as an XML doc and send it. It could well build the XML from all the objects inside the form. Otherwise you would get the value using:

PHP Code:

$name $_POST['worldpay_name']; 

I know its a bit vague but never used Worldpay. Hope that gives some clues to the API though.

Mr Angry 03-06-2009 00:27

Re: Worldpay - html coding - anyone?
 
G,

That's a good help.

I've found some documentation on the Worldpay server which suggests that you're on the right lines but I will have to figure out the "handlers" from their end.

What's with the "and at this time of night" malarkey?

Punk rockers didn't need to sleep when I were a lad ...etc, etc, etc.

Thanks again mate.

P


All times are GMT. The time now is 23:30.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum