homepage Welcome to WebmasterWorld Guest from 54.205.106.111
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
ePDQ - Allowed URL
I have 4 html pages and I am allowed to submit data to ePDQ from just one
carlozdre




msg:3291807
 1:13 pm on Mar 24, 2007 (gmt 0)

Hello,

I tried to integrate ePDQ system on my site and I can't continue due to allowed URL.

I'm not allowed to submit data to ePDQ CPI from more than 1 URL but I have 4 html pages with their "pay now" buttons (for

each property) so 4 URL's.

I called Barclays and they told me I have to do this through a single page because I will not be allowed to use more than

one html page for sending the details to their store (a jump page?) and they can recommend me a developer to help me but

I can't afford to ask for a price even to make a deal with them.

So I'll try to do it myself. I see how the stuff works but I can't write PHP code which I guess is my answer.

Cause I need a php page who knows where from the user clicked (which one of my html pages) and redirect him to the CPI

system but with the corect settings deppending the button (price) they choose.

Example of one HTML page:
This line is the one who's telling the ePDQ system the price: <INPUT name=epdqdata type=hidden value="111somenumbers">

<table border="0" cellpadding="6">
<tr>
<th>Type</th>
<th>1 week</th>
<th>1 month</th>
</tr>

<tr>

<td valign="top">two bedroom duplex</td>

<td>900
<form action="https://example.com/cgi-bin/CcxBarclaysEpdq.e" method="post">
<!-- place encrypted ePDQ code between the form tags -->
<INPUT name=epdqdata type=hidden value="111somenumbers">
<input type="hidden" name="returnurl" value="http://www.example.com/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.example.com/Images/paynow.gif" alt="Pay now" title="900 per week" width="92"

height="25"/></form></td>

<td>1900
<form action="https://example.com/cgi-bin/CcxBarclaysEpdq.e" method="post">
<!-- place encrypted ePDQ code between the form tags -->
<INPUT name=epdqdata type=hidden value="111somenumbers">
<input type="hidden" name="returnurl" value="http://www.example.com/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.example.com/Images/paynow.gif" alt="Pay now" title="1900 per month" width="92"

height="25"/></form></td>

</tr>

<tr>

<td valign="top">three bedroom penthouse</td>

<td>3300
<form action="https://example.com/cgi-bin/CcxBarclaysEpdq.e" method="post">
<!-- place encrypted ePDQ code between the form tags -->
<INPUT name=epdqdata type=hidden value="111somenumbers">
<input type="hidden" name="returnurl" value="http://www.example.com/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.example.com/Images/paynow.gif" alt="Pay now" title="3300 per week" width="92"

height="25"/></form></td>

<td>7000
<form action="example.com/cgi-bin/CcxBarclaysEpdq.e" method="post">
<!-- place encrypted ePDQ code between the form tags -->
<INPUT name=epdqdata type=hidden value="111somenumbers">
<input type="hidden" name="returnurl" value="http://www.example.com/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.example.com/Images/paynow.gif" alt="Pay now" title="7000 per month" width="92"

height="25"/></form></td>

</tr>
</table>

It must be something similar to:
IF HTTP refferer is www.example.com/thisparticularyHTMLfile.html then redirect to URLofePDQsystem
IF HTTP refferer is www.example.com/thissecondparticularyHTMLfile.html then redirect to URLofePDQsystem

Or should I create an ID for each submit and use that id for calling in the PHP page?
I've searched the forum and I didn't find anything on my knowledge.

Anyway my html worked but just for one page, everything is done well.

Can anyone please help me? I suppose is a simple script.

Thank you very much.

[edited by: dreamcatcher at 1:19 pm (utc) on Mar. 24, 2007]
[edit reason] Use example.com, thanks. [/edit]

 

eelixduppy




msg:3293214
 11:35 am on Mar 26, 2007 (gmt 0)

Welcome to WebmasterWorld, carlozdre!

It seems that you do not have all of the inputs together in one form. This is the structure that you have:

<form>
<input page 1....
</form>

<form>
<input page 2.....
</form>
...etc...

You want all your inputs to be within the same form element like this:

<form>
<input page 1....
<input page 2.....
<input page 3.....
etc...
</form>
you want to do something with simliar names because you have more than one of each, and they won't be handled properly. You can make them arrays by adding [] to the end of the name like this:

<input type="input" [b]name="test[]"[/b] />

Try to combine everything into one form and get back to us. If you need further assistance we will be here to help :)

Good luck!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved