2015-04-07 80 views
0

对于在Magento默认的方法成功页面是/checkout/oneage/success成功URL托管

对于PayPal网站标准成功页面是/paypal/standard/success/

谁能告诉我是什么的贝宝网站成功的网址托管亲?一些挖后,我发现这是paypal/hostedpro/success/

难道是正确的吗?我需要的成功URL设置为网站支付返回URL托管在贝宝一边亲。

请帮忙。

回答

0

法/贝宝/控制器/ StandardController有这样的方法successAction,其finaly重定向你检出/成功/ onepage

/** 
* when paypal returns 
* The order information at this point is in POST 
* variables. However, you don't want to "process" the order until you 
* get validation from the IPN. 
*/ 
public function successAction() 
{ 
    $session = Mage::getSingleton('checkout/session'); 
    $session->setQuoteId($session->getPaypalStandardQuoteId(true)); 
    Mage::getSingleton('checkout/session')->getQuote()->setIsActive(false)->save(); 
    $this->_redirect('checkout/onepage/success', array('_secure'=>true)); 
} 

HostedproController那里没有successAction,只有returnAction

/** 
* When a customer return to website from gateway. 
*/ 
public function returnAction() 
{ 
    $session = $this->_getCheckout(); 
    //TODO: some actions with order 
    if ($session->getLastRealOrderId()) { 
     $this->_redirect('checkout/onepage/success'); 
    } 
} 
+0

我需要设置在贝宝的网站支付托管亲Magento的成功URL。它的网址是什么?付款状态我成功完成购买后作为待付款。 –

+0

我没有绝对的把握,也许试试这个“结帐/ onepage /成功” – zhartaunik