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

Google Checkout re-direct bug
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 

In my core/mage/GoogleCheckout/controllers/Redirectcontroller.php on line 85 I have:

$this->getLayout()->getBlock(’googlecheckout_redirect’)->setRedirectUrl($url);

But this gives a fatal error every time I try to pay an order via Google Checkout from the onepage cart.

If I change the line to:

$this->getResponse()->setRedirect($url);

It seems to work.

What’s happening here?  Anyone else had this bug?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 

*sigh*

Anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
LeeSaferite
Guru
 
Avatar
Total Posts:  322
Joined:  2007-08-31
Lake City, FL
 

What is the fatal error, can you give any more context?

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 
Lee Saferite - 22 August 2008 06:42 AM

What is the fatal error, can you give any more context?

Thanks for the reply.

It works fine from the Cart page, but if you go through the checkout process and choose Google Checkout as a payment option, I get this:

Fatal error: Call to a member function setRedirectUrl() on a non-object in /home/powerh/public_html/app/code/core/Mage/GoogleCheckout/controllers/RedirectController.php on line 83

Which is this function:

public function redirectAction()
{
$api = $this->_getApi();

if ($api->getError()) {
$this->getResponse()->setRedirect(Mage::getUrl(’checkout/cart’));
return;
} else {
$url = $api->getRedirectUrl();
$this->loadLayout();
$this->getLayout()->getBlock(’googlecheckout_redirect’)->setRedirectUrl($url);
$this->renderLayout();
}
}

Using 1.1.3.

 
Magento Community Magento Community
Magento Community
Magento Community
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 

Also, orders are added to the back-end when the customer is redirected to Google (as Pending) but if the customer doesn’t complete the order the order still sits there, is it meant to do that?  Wouldn’t it be better to only post the order to Magento once the customer has logged in and completed the Google Checkout transaction?

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