Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ePDQ - Allowed URL


carlozdre

Recommended Posts

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://secure2.epdq.co.uk/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.somewebsite.co.uk/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.somewebsite.co.uk/Images/paynow.gif" alt="Pay now" title="£900 per week" width="92" height="25"/></form></td>

<td>£1900
<form action="https://secure2.epdq.co.uk/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.somewebsite.co.uk/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.somewebsite.co.uk/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://secure2.epdq.co.uk/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.somewebsite.co.uk/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.somewebsite.co.uk/Images/paynow.gif" alt="Pay now" title="£3300 per week" width="92" height="25"/></form></td>

<td>£7000
<form action="https://secure2.epdq.co.uk/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.somewebsite.co.uk/one/epdqresponse.php">
<input type="hidden" name="merchantdisplayname" value="nameofcompany">
<input type="image" src="http://www.somewebsite.co.uk/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.somesite.com/thisparticularyHTMLfile.html then redirect to URLofePDQsystem

IF HTTP refferer is www.somesite.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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...