ericqu Posted October 12, 2013 Share Posted October 12, 2013 Hi all I have a servious problem for the payment module Paypal and COD. After you made the payment through the two modules, it always shows double or triple amount paid instead of the real amount in the payment section of order detail page in admistration. It is very strange. It not happens to bank wire. I do not think it is something wrong with the module, maybe it is prestashop. Thanks a lot. Link to comment Share on other sites More sharing options...
vekia Posted October 12, 2013 Share Posted October 12, 2013 does it depend on number of products you've got in cart? Link to comment Share on other sites More sharing options...
ericqu Posted October 12, 2013 Author Share Posted October 12, 2013 No, the quantity is 1 when I tested. I think it related to the payment method. This error occurs when selecting those payment methods which are able to change the order status automatically, eg status-payment received for paypal, status - in preparation for COD. Link to comment Share on other sites More sharing options...
ericqu Posted October 12, 2013 Author Share Posted October 12, 2013 It shows like this in the stats. Seems like it doubles the cart amount for some reason. The 现金支付 is Cash on delivery in English. Link to comment Share on other sites More sharing options...
rruslann Posted February 18, 2015 Share Posted February 18, 2015 (edited) i have the same problem. prestashop 1.6.0.11 Edited February 18, 2015 by rruslann (see edit history) Link to comment Share on other sites More sharing options...
enri.movida Posted January 7, 2016 Share Posted January 7, 2016 I have the same problem!I am using COD when an order is made (no matter products on the cart) i get an warning "Warning 4 000 Lekë paid instead of 2 000 Lekë" Why the payment is 2x?Screenshot attachedhttps://drive.google.com/folderview?id=0B_lYODcc5kpxcjZOR21Td3B0M2c&usp=sharing Link to comment Share on other sites More sharing options...
whitelord Posted March 30, 2016 Share Posted March 30, 2016 It seems that this issue is more related to statuses rather than payments. I have observed that for COD the order gets status 'Preparation in progress' and upon order confirmation by customer the payment is automatically assigned to order, after you will update the status of the order, for example to Shipped/Delivered the same payment is assigned once more and doubles the payment. In my case I have modified modules/cashondelivery/controllers/front/validation.php and commented line 59: /* $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);*/ and replaced it with: $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_COD_VALIDATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); PS_OS_COD_VALIDATION is the status for 'Waiting COD Validation' from config/config.inc.php file After testing the above mentioned modification the payment is not assigned after order confirmation by customer and once you will update the status of your order to Shipped/Delivered you will see only one payment. In case you do not want to perform manual modification, another solution might be to untick 'Consider the associated order as validated.' and 'Set the order as paid.' checkboxes from Backoffice > Orders > Statuses > Preparation in progress (In this way the order is not marked as paid after confirmation). Hope this helps By the way, I am using PS 1.6.1.4 Cheers! Marius Link to comment Share on other sites More sharing options...
fmoreira86 Posted March 30, 2016 Share Posted March 30, 2016 Hi! "Preparation in Progress" is set to mark the order as paid by default. If you do a clean install with all the defaults you won't face this issue... My prestashop has invoices disabled... don't know wether it has some influence... This also happens with Paypal module... Doesn't happen with Bankwire though... It seems that this issue is more related to statuses rather than payments. I have observed that for COD the order gets status 'Preparation in progress' and upon order confirmation by customer the payment is automatically assigned to order, after you will update the status of the order, for example to Shipped/Delivered the same payment is assigned once more and doubles the payment. In my case I have modified modules/cashondelivery/controllers/front/validation.php and commented line 59: /* $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);*/ and replaced it with: $this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_COD_VALIDATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key); PS_OS_COD_VALIDATION is the status for 'Waiting COD Validation' from config/config.inc.php file After testing the above mentioned modification the payment is not assigned after order confirmation by customer and once you will update the status of your order to Shipped/Delivered you will see only one payment. In case you do not want to perform manual modification, another solution might be to untick 'Consider the associated order as validated.' and 'Set the order as paid.' checkboxes from Backoffice > Orders > Statuses > Preparation in progress (In this way the order is not marked as paid after confirmation). Hope this helps By the way, I am using PS 1.6.1.4 Cheers! Marius Link to comment Share on other sites More sharing options...
whitelord Posted March 31, 2016 Share Posted March 31, 2016 Well, this was my scenario, I did not want to install a fresh prestashop for this. I am also having invoices disabled and it worked for me. Link to comment Share on other sites More sharing options...
fmoreira86 Posted March 31, 2016 Share Posted March 31, 2016 Hi! What about paypal? No issues? Thank you! Well, this was my scenario, I did not want to install a fresh prestashop for this. I am also having invoices disabled and it worked for me. Link to comment Share on other sites More sharing options...
whitelord Posted March 31, 2016 Share Posted March 31, 2016 We are not using paypal as payment menthod for the moment. Most of our orders are based on cash on delivery and bank wire transfers. What is the first status of an order that was placed using PayPal as payment method and what boxes are ticked for that respective status in the backoffice? Marius Link to comment Share on other sites More sharing options...
fmoreira86 Posted March 31, 2016 Share Posted March 31, 2016 The first status is "Payment Accepted" It becomes marked as paid twice as soon as we set it to "In progress" which by default is set to mark the order as paid. As I told before in the forum, bug tracker, etc, this is a Bug, and a big one and it seems strange to me that with so many people reporting it the staff doesn't seem to really care... We are not using paypal as payment menthod for the moment. Most of our orders are based on cash on delivery and bank wire transfers. What is the first status of an order that was placed using PayPal as payment method and what boxes are ticked for that respective status in the backoffice? Marius 2 Link to comment Share on other sites More sharing options...
whitelord Posted April 1, 2016 Share Posted April 1, 2016 (edited) Try to untick the boxes ('Consider the associated order as validated.' and 'Set the order as paid.') of Payment Accepted status, save the changes, afterwards do a test transaction and change the status to In Progress. Or leave the Payment Accepted status as it is and do the above changes for In Progress. Marius Edited April 2, 2016 by whitelord (see edit history) Link to comment Share on other sites More sharing options...
Czarekplpl Posted May 12, 2016 Share Posted May 12, 2016 My solution. I had got duplicate payment for Paypall, Alipay and Weixin. Problem is that you have to generate Delivery Note at least one status before you set order as Paid. Sample of statuses sequence: PAYMENT RECEIVED - order cannot be set as paid (no delivery note no invoice). So you delivery note to be gererated in the next status. ORDER ACCEPTED - order still cannot be set as paid - generate Delivery Note. ORDER PROCESSING - because pdf i generated in previous order you can set order as paid. This works for me in 1613 Link to comment Share on other sites More sharing options...
Recommended Posts