Try the Demo

Magento Forum

   
Page 3 of 3
Paypal 1.3.2.3 Problem Status goes to complete after payment !!!! 
 
naichunlei
Member
 
Avatar
Total Posts:  39
Joined:  2008-12-14
Paris
 
magicker - 11 December 2009 02:35 PM

I can confirm that updating from 1.3.2.3 to 1.3.2.4 and making the changes below fixes the following:

grand total order double
customer paid double
paypal order defaulting to complete instead of processing

My Standard.php file now looks like:

147     public function canCapture()
148     {
149         
return true;
150     }
.....  .........


417     $invoice->register()->pay();
418              Mage::getModel('core/resource_transaction')
419            ->addObject($invoice)
420         ->addObject($invoice->getOrder())
421          ->save();
422        $order->setState(
423        Mage_Sales_Model_Order::STATE_PROCESSING$newOrderStatus,
424           Mage::helper('paypal')->__('Invoice #%s created'$invoice->getIncrementId()),
425           $notified true

I’m on 1.3.1.1. Does anyone know if this solution works for this version?
For me I only change

$invoice->register()->capture();

to

$invoice->register()->pay();

still waiting for the first incoming order to see if it works.

 Signature 

Mon site de vente de montre casio en ligne avec Magento - Montre Space
Yoohoo !

 
Magento Community Magento Community
Magento Community
Magento Community
 
frightideas
Jr. Member
 
Total Posts:  1
Joined:  2010-01-13
 

Magicker’s two fixes worked for me as well on a fresh install of 1.3.2.4.  “Total Paid” is now correct, and order status is correct set to “Processing” instead of Completed.

Thanks!

--
Fright Ideas

 
Magento Community Magento Community
Magento Community
Magento Community
 
danim
Jr. Member
 
Total Posts:  5
Joined:  2009-06-08
 

The fix works great!

However, I suspect that there is another bug with paypal.

When the customer pays using paypal the invoice is generated and marked as “notified to the customer”. However, the email with the invoice is not send to the customer.

Thank you for the fix!

 
Magento Community Magento Community
Magento Community
Magento Community
 
KWAVE
Member
 
Avatar
Total Posts:  51
Joined:  2009-04-04
Boston
 

Since no one answered this

file location is here

app/code/core/mage/paypal/model/Standard.php

 Signature 

KWAVE
James Seavey
Magento Design

 
Magento Community Magento Community
Magento Community
Magento Community
 
BossTurbo
Jr. Member
 
Total Posts:  14
Joined:  2009-10-02
 

Thanks kwave and magicker.  Was exactly the solution I needed.  Works in 1.3.2.4.

 
Magento Community Magento Community
Magento Community
Magento Community
 
instigata
Jr. Member
 
Total Posts:  24
Joined:  2008-11-11
 

Interesting post guys.

Any ideas on how to handle the coupon problem with paypal. The coupon is being registered if I accept bank prepayment at the order review (final stage), however, not if the customer pays with paypal standard.

Thanks for the help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vipulpratap
Jr. Member
 
Total Posts:  27
Joined:  2009-09-02
 

Paypla still has a problem.

I had to allow all countries to get over the problem of paypal express.

Its on my site: Modern Chairs

 
Magento Community Magento Community
Magento Community
Magento Community
 
cdouillard
Jr. Member
 
Total Posts:  16
Joined:  2009-02-11
Montreal
 

I applied the the modifications suggested here and initial issues with order status and double total amount have disappeared.
I am still experiencing a problem with tax though:

When I am inside Magento Checkout taxes are calculated ok.
Then when payment is made in Paypal the order is updated and I get two new tax records with weird amounts. My totals are still ok though. It’s just when I look into the tax detail that I see the new records.

Any clue anyone?

(See attached screen shots)

Image Attachments
Image 3.pngImage 2.png
 Signature 

Christophe
http://www.linkosolutions.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Wielen
Sr. Member
 
Total Posts:  83
Joined:  2009-01-28
 
danim - 02 February 2010 12:44 AM

The fix works great!

However, I suspect that there is another bug with paypal.

When the customer pays using paypal the invoice is generated and marked as “notified to the customer”. However, the email with the invoice is not send to the customer.

Thank you for the fix!

Hello,

I have the same problem, does anyone has a solution for this?

Cheers,

Jord

 
Magento Community Magento Community
Magento Community
Magento Community
 
Cyberrob90
Jr. Member
 
Total Posts:  17
Joined:  2010-04-26
 

Hi,
I also have this problem that the customer isn’t informed. There’ just a paypal assignment for succesfull payment. It is very important for me to inform the customer per Shopmail.
Has anyone found a solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Homendra
Jr. Member
 
Total Posts:  3
Joined:  2008-10-12
 

Thanks, Very Helpful ! 

Great work done by magento developer.

 Signature 

Thanks & Regards,
Hkumar

 
Magento Community Magento Community
Magento Community
Magento Community
 
magentomax
Jr. Member
 
Total Posts:  4
Joined:  2010-03-16
 
Dx3webs - 11 December 2009 02:35 PM

I can confirm that updating from 1.3.2.3 to 1.3.2.4 and making the changes below fixes the following:

grand total order double
customer paid double
paypal order defaulting to complete instead of processing

My Standard.php file now looks like:

147     public function canCapture()
148     {
149         
return true;
150     }
.....  .........


417     $invoice->register()->pay();
418              Mage::getModel('core/resource_transaction')
419            ->addObject($invoice)
420         ->addObject($invoice->getOrder())
421          ->save();
422        $order->setState(
423        Mage_Sales_Model_Order::STATE_PROCESSING$newOrderStatus,
424           Mage::helper('paypal')->__('Invoice #%s created'$invoice->getIncrementId()),
425           $notified true

i have used the same code in my magento 1.3.2.3, but it takes the Complete status instead of Processing. we have virtual products.
Please replay. i dont find any solutions for the same.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jamie_2jdesign
Jr. Member
 
Avatar
Total Posts:  23
Joined:  2010-03-05
Sheffield, UK
 

To fix this issue follow these simple steps below.

Locate File: app/code/core/Mage/Paypal/Model/standard.php

On line 423 you should have this line of code:
Mage_Sales_Model_Order::STATE_COMPLETE, true,

Replace this line with
Mage_Sales_Model_Order::STATE_PROCESSING, true,

Save and upload and this will set new paypal orders to processing when payment is complete.

 Signature 

2J Design Ltd - Magento Silver Solutions Partner.
Ecommerce Web Design
Magento Developer

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 3 of 3