Mikeey Posted September 1, 2009 Share Posted September 1, 2009 Hi, I have a problem when paying. The order doesn't appear after payment, but the amount is taken from the VISA card.I've found that it is $id_order that is the problem.In order-confirmation.php $id_order = Order::getOrderByCartId(intval($id_cart)); if (!$id_order OR !$id_module OR !$secure_key OR empty($secure_key)) Tools::redirect('history.php'); the redirect to history.php is because !$id_order... How come? The answer from the payment module is <form name="formapprove" id="formapprove" method ="post" action="http://www.mystore.com:80/webshop/order-confirmation.php?key=7cec8cb4b287d6373eca9d62c7810d00&id_cart=49&id_module=49" target=""> <input type="hidden" name="merchantid" value="11284"> <input type="hidden" name="amount" value="959.00"> <input type="hidden" name="orderid" value="49_20090901173442"> <input type="hidden" name="id_offer" value="33210"> <input type="hidden" name="currency" value="752"> <input type="hidden" name="trnumber" value="114790" > <input type="hidden" name="authcode" value="893353" > <input type="hidden" name="ch_name" value="Cust Name"> <input type="hidden" name="ch_address1" value="address 99"> <input type="hidden" name="ch_address2" value=""> <input type="hidden" name="ch_address3" value=""> <input type="hidden" name="ch_zip" value="99999"> <input type="hidden" name="ch_city" value="somewhere"> <input type="hidden" name="ch_email" value="[email protected]"> <input type="hidden" name="ch_phone" value=""> <input type="hidden" name="result" value="OK"> <input type="hidden" name="result_code" value="00"> <input type="hidden" name="bank_code" value="00" > <input type="hidden" name="lang" value="sv"> <input type="hidden" name="transp1" value=""> <input type="hidden" name="transp2" value=""> <input type="hidden" name="cc_descr" value="Utländskt VISA/MasterCard, Utländska Visa"> <input type="hidden" name="md5code" value="046aa92d76c036804308b80681714d68"> As you see, there is a hidden input field with the orderid... What can be wrong? Please help! Link to comment Share on other sites More sharing options...
Mikeey Posted September 1, 2009 Author Share Posted September 1, 2009 $order->id_customer is returned NULL while $cookie->id_customer is 5... Someone who know where this problem can come from?If I specify id_customer, id_order and so on !Validate::isLoadedObject($order) will kill it.EDITAlso tested with an untouched version of prestashop, with prestashop theme.. Still the same problem.The CertiTrade company said they got a 404-Not found, when trying to locate validation.php, but the file is in the module folder... Link to comment Share on other sites More sharing options...
Recommended Posts