Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Paypal IPN issue
 
evL
Member
 
Total Posts:  32
Joined:  2008-04-23
 

Hey,

I’m having a problem with paypal’s ipn.

I can make an order and it all goes well. The order is created with the status that I want. The payment is processed and completed on paypal’s side. But on my site, the order status doesn’t change and the invoice isn’t created.

I’ve put the debug flag and realized that the IPN is returning, but not completing.

StandardController.php
/**
     * when paypal returns via ipn
     * cannot have any output here
     * validate IPN data
     * if data is valid need to update the database that the user has
     */
    
public function ipnAction()
    
{
        
if (!$this->getRequest()->isPost()) {
            $this
->_redirect('');
            return;
        
}

        
if($this->getStandard()->getDebug()){
            $debug 
Mage::getModel('paypal/api_debug')
                ->
setApiEndpoint($this->getStandard()->getPaypalUrl())
                ->
setRequestBody(print_r($this->getRequest()->getPost(),1))
                ->
save();
        
}

        $this
->getStandard()->setIpnFormData($this->getRequest()->getPost());
        
$this->getStandard()->ipnPostSubmit();
    
}

The debug post is in fact posted in the DB with the data as an array (with the print_r), but the ipnPostSubmit() is never called. I’ve tried putting a log into that method (fopen,fwrite) but it didn’t even create the file. So I’m guessing it never calls ...

That leaves me thinking that setIpnFormData() isn’t found in the methods list.

Can someone please help me ? I need this fixed for my client because as of right now, it must all be done manually and it is really a pain ...

 
Magento Community Magento Community
Magento Community
Magento Community
 
evL
Member
 
Total Posts:  32
Joined:  2008-04-23
 

Nevermind this thread ... I believe it was a problem on paypal’s end cause it fixed on it’s own.

Damn I love then that happens!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top