Jump to content

1.4 Ogone return URL problem


Recommended Posts

Hey everyone,

 

I've got a problem with the Ogone module in 1.4.1. Actually, there are many. But I luckily was able to fix a lot of them with the search. But not this one.

 

When the user clicks cancel whilst in Ogone, they are redirected back to the site with a lot of info in the GET. Then the site just hangs at the AJAX loader gif. Nothing is processed. This also happens if you follow through with the order.

 

Any ideas? I want to get this site live soon :( Thanks in advance!

Link to comment
Share on other sites

Extra info:

 

Confirmation.php loads fine; as well as waiting.tpl. I can send an alert every 5 seconds. Somehow, checkwaitingorder.php is not working correctly. Code is as follows:

 

<?php

include('{*SHOP URL TRUNCATED*}/config/config.inc.php');
die(
Db::getInstance()->getValue('SELECT id_order FROM orders WHERE id_cart = '.(int)Tools::getValue('id_cart').' AND secure_key = "'.pSQL(Tools::getValue('key')).'"')
? 'ok'
: 'ko'
);

?>

 

Also, the orders table seems to have only one line, which was conjured a few months ago. Oddly, the memory limits on my LAMP server are all high enough.

Edited by coenkoopmans (see edit history)
Link to comment
Share on other sites

I found where the issue comes from. Not sure how to fix it though. {$ogone_link} is a null value:

 

<script type="text/javascript">
/* <![CDATA[ */
function checkwaitingorder()
{$.ajax({type:"POST",async:true,url:'http://shop.{*truncated*}.com/modules/ogone/checkwaitingorder.php',data:'id_cart=0&id_module=60&key=1d5465652f4f8a37ca7e0968f739c0f1',success:function(r){if(r=='ok')
self.location.href='?id_cart=0&id_module=60&key=1d5445432f8f4e37ca6f0948f73940f1';[spam-filter]);setTimeout('checkwaitingorder()',5000);}
setTimeout('checkwaitingorder()',5000);/* ]]> */</script>

 

This appears in the output. What SHOULD $ogone_link be? I'll hardcore it if I have to.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...