Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2009
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Barclays EPDQ - allowed URL problem

    I have set up the Barclays EPDQ MOdule but when I try to checkout, I get the message:
    =====

    Sorry, there has been a problem processing your payment.

    Not a valid allowed URL
    ===

    The url of th epage with the checkout button is:
    https://pegasus.terrassl.net/~kellys...t_confirmation

    The url entered in the Barclaycard system is:
    https://pegasus.terrassl.net/~kellys...t_confirmation

    (per the module installation instructions)

    Does anyone know what I have done wrong?

    Regards

    Tog
    Last edited by Kim; 22 Jan 2010 at 05:17 PM.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Barclays EPDQ - alowed URL problem

    Scroll down this page...links to similar topics which may help

  3. #3
    Join Date
    Dec 2009
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Barclays EPDQ - alowed URL problem

    Hello Misty,

    I have already ploughed through those and many other threads, but nothing gives me the answer. It appears that Zen Cart creates dynamic urls for the checkout, but Barclay's does not accept them. If I create an order in zencart and got to the final checkout page, then paste that url into Barclay's system as the allowed url, wait fifteen minutes and press the continue button on zen cart - it works! Takes me to barclaycard page asking for card details. Using the dummy card number given by Bartclaycard, I then get the correct transaction declined notice.

    However, If I then raise a new order in zen cart and checkout, instead of the correct barclaycard entry page, I get the Allowed URL invalid message again, because the last part of the sending url has been changed by Zen cart.

    How can I fix this?

    Best regards

    Tog

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Barclays EPDQ - alowed URL problem

    Dont use Barclays myself, so can only hope either zencart coder reads this thread OR suggest posting in COMMERCIAL Forum...

  5. #5
    Join Date
    Dec 2009
    Location
    Scotland
    Posts
    76
    Plugin Contributions
    0

    Default Re: Barclays EPDQ - alowed URL problem

    I was hoping that the person who wrote the add-on module would reply. or someone who has the mod running and working.

    Regards

    Tog

  6. #6
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: Barclays EPDQ - allowed URL problem

    Hi Togfather,

    Not sure if this is too late but I found a solution to this.

    I created a intermediate page to forward the information to Barclays.

    Goes like this
    Checkout Confirm page.

    Checkout Continue Page. (my created page, which has static url)

    Barclays.


    The Checkout Continue Page gets the variables I need from the checkout page and posts them to Barclays, the page is set to auto forward after 3-4 seconds with a manual link if it doesn't.

    Its not pretty, but it works and as my bank uses it when I pay my credit card bill its not a unknow process.

    If you need any more help drop me a line and I'll send you more info.

  7. #7
    Join Date
    Oct 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Barclays EPDQ - allowed URL problem

    Quote Originally Posted by steveyork136 View Post
    Hi Togfather,

    Not sure if this is too late but I found a solution to this.

    I created a intermediate page to forward the information to Barclays.

    Goes like this
    Checkout Confirm page.

    Checkout Continue Page. (my created page, which has static url)

    Barclays.


    The Checkout Continue Page gets the variables I need from the checkout page and posts them to Barclays, the page is set to auto forward after 3-4 seconds with a manual link if it doesn't.

    Its not pretty, but it works and as my bank uses it when I pay my credit card bill its not a unknow process.

    If you need any more help drop me a line and I'll send you more info.
    Hi Steve,

    I've got the same problem - could you paste the code you are using in your page to pass the parameters to barclays? :-)

  8. #8
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: Barclays EPDQ - allowed URL problem

    Hi TwoWayRadio

    I used the About us module to create the extra page require, I figured this would be better than trying to create something myself.

    So I installed the About Us module changing all refrences to About Us to Checkout Jump (or similar).

    Then in modules/payment/epdq.php (from the EPDQ module)
    I changed line (approx) 29 from


    Code:
     if (is_object($order)) $this->update_status();
          $this->form_action_url = 'https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdq.e';
    }

    to


    Code:
     
     if (is_object($order)) $this->update_status();
    $this->form_action_url = 'HTTP://YOUR_STORE_URL.COM/index.php?main_page=checkout_jump';
        }

    Then in the templates/YOUR_TEMPLATE/templates/tpl_checkout_jump_default.php

    (what was tpl_about_us_default.php)
    I added this code


    Code:
    <?php
    /**
     * Page Template
     *
     * Loaded automatically by index.php?main_page=about_us.<br />
     * Displays About Us page.
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_about_us_default.php  v1.3 $
     */
    ?>
    <div class="centerColumn" id="about_us">
    <h1 id="aboutUsHeading"><?php echo HEADING_TITLE; ?></h1>
    
    <div id="aboutUsMainContent" class="content">
    <img src="https://secure2.epdq.co.uk/CPI2/Main/images/ePDQ-Logo.png" /><br /><br />
    
    <form action="https://secure2.epdq.co.uk/cgi-bin/CcxBarclaysEpdq.e" method="post" name="checkout_confirmation">
        <input type="hidden" name="epdqdata" value="<?php echo $_POST['epdqdata']; ?>" />
        <input type="hidden" name="returnurl" value="<?php echo $_POST['returnurl']; ?>" />
        <input type="hidden" name="merchantdisplayname" value="<?php echo $_POST['merchantdisplayname']; ?>" />
        <input type="hidden" name="supportedcardtypes" value="<?php echo $_POST['supportedcardtypes']; ?>" />
        <input type="hidden" name="collectdeliveryaddress" value="<?php echo $_POST['collectdeliveryaddress']; ?>" />
        <input type="hidden" name="email" value="<?php echo $_POST['email']; ?>" />
        <input type="hidden" name="baddr1" value="<?php echo $_POST['baddr1']; ?>" />
        <input type="hidden" name="bcity" value="<?php echo $_POST['bcity']; ?>" />
        <input type="hidden" name="bcountry" value="<?php echo $_POST['bcountry']; ?>" />
        <input type="hidden" name="bpostalcode" value="<?php echo $_POST['bpostalcode']; ?>" />
        <input type="hidden" name="btelephonenumber" value="<?php echo $_POST['btelephonenumber']; ?>" />
    
    
         
    <script>
    document.write ('You will be redirected to the secure server in <span id="seconds">5</span>.');
        
          var seconds = 5;
          setInterval(
            function(){
              if (seconds <= 1) {
                document.checkout_confirmation.submit();
              }
              else {
                document.getElementById('seconds').innerHTML = --seconds;
              }
            },
            1000
          );
          
    document.write ('<br /><br />If this page does not forward please click here.<br />');
    document.write ('<input type="submit" value="Submit">');
          
        </script>
    
        <noscript>
        Please Press here to continue to secure server<br />
        <input type="submit" value="Submit"></noscript>
              
         </form>
    
    <?php
    /**
     * require the html_define for the about us page
     */
     // require($define_page);
    ?>
    </div>
    
    </div>


    So all it does it use the original checkout page variables passing them to the checkout jump page, which then forwards them to the Barcalys EPDQ. As this page is alway static the EPDQ will accept the payments.

    Please note there are a couple of code changes that you need to do in the above, URLs etc, you may also need to tweak the form fields.

    Hope this helps.
    Last edited by steveyork136; 25 Oct 2010 at 01:11 PM. Reason: missing scr tag

  9. #9
    Join Date
    Oct 2010
    Posts
    32
    Plugin Contributions
    0

    Default Re: Barclays EPDQ - allowed URL problem

    Quote Originally Posted by steveyork136 View Post
    Hi TwoWayRadio

    I used the About us module to create the extra page require, I figured this would be better than trying to create something myself.

    So I installed the About Us module changing all refrences to About Us to Checkout Jump (or similar).

    Then in modules/payment/epdq.php (from the EPDQ module)
    I changed line (approx) 29 from


    Then in the templates/YOUR_TEMPLATE/templates/tpl_checkout_jump_default.php

    (what was tpl_about_us_default.php)
    I added this code


    So all it does it use the original checkout page variables passing them to the checkout jump page, which then forwards them to the Barcalys EPDQ. As this page is alway static the EPDQ will accept the payments.

    Please note there are a couple of code changes that you need to do in the above, URLs etc, you may also need to tweak the form fields.

    Hope this helps.
    Cheers Stevey. I got this working and it did the trick, the only issue is now because we stripped the zenid get variable from the outgoing post (to satisfy Barclays since they don't accept dynamic URL's) the return post doesn't include it so Zen Cart can't match up the session - forcing a zen cart Whoops, session time out error.

    Have you experienced this at all?
    Last edited by TwoWayRadio; 25 Oct 2010 at 04:44 PM.

  10. #10
    Join Date
    Nov 2005
    Posts
    86
    Plugin Contributions
    1

    Default Re: Barclays EPDQ - allowed URL problem

    Hi TwoWayRadio,

    Yes we had some issue with session errors but I was also trying to set the site up using a shared SSL (not my choice) so some of the issues may have been related to that, I know the site works now so whatever combination we hit upon did the trick.

    Here what we have on the Configuation for Sessions, see if this helps.


    Cookie Domain: True
    Force Cookie Use: False
    Check SSL Session ID: False
    Check User Agent: False
    Check IP Address: False
    Prevent Spider Sessions: True
    Recreate Session: False
    IP to Host Conversion Status: true

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Barclays EPDQ problem
    By sameer44 in forum Addon Payment Modules
    Replies: 1
    Last Post: 2 Nov 2010, 07:23 PM
  2. Barclays Epdq update
    By Gerome in forum Addon Payment Modules
    Replies: 13
    Last Post: 6 Dec 2008, 02:21 PM
  3. Barclays ePDQ account
    By multichild in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Oct 2007, 11:16 AM
  4. Barclays ePDQ Do or Die
    By StephanToth in forum Addon Payment Modules
    Replies: 0
    Last Post: 19 Aug 2006, 04:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR