adamcarter Posted September 5, 2013 Share Posted September 5, 2013 When customers pay by the cheque option this what they see at the top of the payment confirmation page: Sorry, unfortunately an error occured during the transaction.Please double-check your credit card details and try again or feel free to contact us to resolve this issue.(Your Order's Reference: XXXXXXXXX) The payment is complete, so customers should NOT see the above message. Any ideas on how to sort this out? Thanks, Adam Link to comment Share on other sites More sharing options...
bellini13 Posted September 5, 2013 Share Posted September 5, 2013 Hi Adam, I think this is your Stripe payment module. The version of Stripe being used, the module did not check to see if the order was paid using Stripe, it just assumes it was. So it spits out its confirmation message regardless of payment method used. I've been told by PS team that a new Stripe module is in the works and is being tested, and hopefully it will address this issue. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 12, 2013 Share Posted September 12, 2013 When customers pay by the cheque option this what they see at the top of the payment confirmation page: Sorry, unfortunately an error occured during the transaction. Please double-check your credit card details and try again or feel free to contact us to resolve this issue. (Your Order's Reference: XXXXXXXXX) The payment is complete, so customers should NOT see the above message. Any ideas on how to sort this out? Thanks, Adam Hi Adam, I believe this error was fixed in the minor updated version released today. This does not include the GBP update but other smaller fixes. If you want to try it out you can download the updated version here, http://addons.prestashop.com/en/payments-gateways-prestashop-modules/6611-stripe.html When the major update is released in the upcoming days I will be sure to let you know. 1 Link to comment Share on other sites More sharing options...
adamcarter Posted September 12, 2013 Author Share Posted September 12, 2013 Thanks, Benjamin. I appreciate it. I will just wait for the GBP version, as Bellini helped me out for free and I don't wish to take up his time again by installing the update only to ask him to add the GBP functionality again. Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 12, 2013 Share Posted September 12, 2013 Thanks, Benjamin. I appreciate it. I will just wait for the GBP version, as Bellini helped me out for free and I don't wish to take up his time again by installing the update only to ask him to add the GBP functionality again. Thanks Adam for understanding. I will update you as new developments happen. Link to comment Share on other sites More sharing options...
surferboy Posted September 13, 2013 Share Posted September 13, 2013 Hi Adam, I believe this error was fixed in the minor updated version released today. This does not include the GBP update but other smaller fixes. If you want to try it out you can download the updated version here, http://addons.prestashop.com/en/payments-gateways-prestashop-modules/6611-stripe.html When the major update is released in the upcoming days I will be sure to let you know. Hi Benjamin, I have our site live and completed a real payment by cheque transaction. I received the same error message (acting as the customer). The order in the Back Office looks correct after the transaction is complete, and the order looks correct if you click on 'My Orders' (acting as the customer). I don't have Stripe installed. We use these two payment modules: Payment by check 2.3and PayPal USA, Canada 1.2.5We're based in the United States. Thanks, Brian Link to comment Share on other sites More sharing options...
bellini13 Posted September 13, 2013 Share Posted September 13, 2013 The paypal usa module has the same issue as Stripe. Unfortunately Prestashop fails to create modules that conform to their own specifications. Open paypalusa.php file and located this function hookOrderConfirmation public function hookOrderConfirmation($params) { if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } Change that function to the following public function hookOrderConfirmation($params) { //bellini: add the following 2 lines. This will check if the payment was made using a different payment method, and will not return anything if (!isset($params['objOrder']) || ($params['objOrder']->module != $this->name)) return false; if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } 1 Link to comment Share on other sites More sharing options...
surferboy Posted September 13, 2013 Share Posted September 13, 2013 Perfect! Thank you so much. - Brian Link to comment Share on other sites More sharing options...
benjamin utterback Posted September 16, 2013 Share Posted September 16, 2013 The paypal usa module has the same issue as Stripe. Unfortunately Prestashop fails to create modules that conform to their own specifications. Open paypalusa.php file and located this function hookOrderConfirmation public function hookOrderConfirmation($params) { if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } Change that function to the following public function hookOrderConfirmation($params) { //bellini: add the following 2 lines. This will check if the payment was made using a different payment method, and will not return anything if (!isset($params['objOrder']) || ($params['objOrder']->module != $this->name)) return false; if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } Hi Mike, was this code change added on Github as well? Thank you so much for the support! Link to comment Share on other sites More sharing options...
bellini13 Posted September 17, 2013 Share Posted September 17, 2013 Hi Benjamin, no I have not submitted to github. Isn't this something Prestashop should be maintaining? Link to comment Share on other sites More sharing options...
safa Posted September 21, 2013 Share Posted September 21, 2013 The paypal usa module has the same issue as Stripe. Unfortunately Prestashop fails to create modules that conform to their own specifications. Open paypalusa.php file and located this function hookOrderConfirmation public function hookOrderConfirmation($params) { if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } Change that function to the following public function hookOrderConfirmation($params) { //bellini: add the following 2 lines. This will check if the payment was made using a different payment method, and will not return anything if (!isset($params['objOrder']) || ($params['objOrder']->module != $this->name)) return false; if (isset($params['objOrder']) && Validate::isLoadedObject($params['objOrder']) && isset($params['objOrder']->valid) && version_compare(_PS_VERSION_, '1.5', '>=') && isset($params['objOrder']->reference)) { $this->smarty->assign('paypal_usa_order', array('id' => $params['objOrder']->id, 'reference' => $params['objOrder']->reference, 'valid' => $params['objOrder']->valid)); return $this->display(__FILE__, 'views/templates/hooks/order-confirmation.tpl'); } } thank you so much, realy helped me Link to comment Share on other sites More sharing options...
adamcarter Posted September 26, 2013 Author Share Posted September 26, 2013 Any further information on the Stripe module then, Benjamin? Link to comment Share on other sites More sharing options...
bellini13 Posted September 27, 2013 Share Posted September 27, 2013 Hi Adam, since this is the post for the Check module, you might be better off asking your question in the Stripe topic. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now