tasfe / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

IE9 Blank page instead of redirect to paymentexpress #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install SS 2.4.5 eCommerce 0.8.2-rc1 Payment 0.3.0 Standalone DPS pxPay 
Module
2. Add item to cart and check out using Internet Explorer 9. Works fine with 
previous version of IE and firefox ect.

What is the expected output? What do you see instead?
Should redirect to the hosted payment gateway. Should see animation then 
redirect to https://sec.paymentexpress.com/pxpay/pxpay.aspx however we seen 
animation then a blank page.

What version of the product are you using? On what operating system?
See above with IE9 on Windows 7 Ult.

Please provide any additional information below

Fault resolved by replacing the following code 
in /payment_dps/code/DpsPxPayPayment.php:

    function DPSForm($url) {
        return <<<HTML
            <form id="PaymentForm" method="post" action="$url"></form>
            <script type="text/javascript">
                jQuery(document).ready(function() {
                    jQuery("#PaymentForm").submit();
                });
            </script>
HTML;

WITH

    function DPSForm($url) {

        return<<<HTML
            <script type="text/javascript">
                jQuery(document).ready(function() {
                    location = "$url";
                });
            </script>
HTML;

Original issue reported on code.google.com by jason.mo...@gmail.com on 25 Aug 2011 at 8:29

GoogleCodeExporter commented 9 years ago
Hi Jason, so you know, there are a few different dps/paymentexpress modules. 
Can you point out which one you are using?

Original comment by jeremybu...@gmail.com on 5 Sep 2011 at 3:38

GoogleCodeExporter commented 9 years ago

Original comment by jeremybu...@gmail.com on 5 Sep 2011 at 3:38

GoogleCodeExporter commented 9 years ago
http://silverstripe-ecommerce.googlecode.com/svn/modules/payment_dps/trunk/

Original comment by jason.mo...@gmail.com on 7 Sep 2011 at 10:00

GoogleCodeExporter commented 9 years ago

Original comment by nfranc...@gmail.com on 10 Jun 2012 at 11:24

GoogleCodeExporter commented 9 years ago

Original comment by nfranc...@gmail.com on 4 Jul 2012 at 11:54

GoogleCodeExporter commented 9 years ago
this is fixed now... I am sorry for the slow response on this. 

Original comment by nfranc...@gmail.com on 11 Jul 2012 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
One of our clients is experiencing the same issue. I have updated to the latest 
version of the payment_dps module (via the link posted by Jason), but the issue 
remains. In my IE console I'm getting a jQuery undefined error. jQuery is 
erroring for some reason. 

I solved it temporarily with an adaptation of the above solution:

function DPSForm($url) {
        return<<<HTML
            <script type="text/javascript">
                window.location = "$url";
            </script>
HTML;

Original comment by fraser.h...@xebidy.com on 9 Oct 2012 at 10:19