dongpan8928 2015-04-07 07:13
浏览 31

paypal网站支付专业版托管后成功的magento网址

For success page of default methods in magento is /checkout/oneage/success

For success page of paypal website standard is /paypal/standard/success/

Could anyone please tell me what will be the success url of paypal website hosted pro? After some digging I found it to be paypal/hostedpro/success/

Is it correct? I need the success url to set as return url in website payment hosted pro in paypal side.

Please help.

  • 写回答

1条回答 默认 最新

  • duan0530 2015-04-07 09:46
    关注

    in Mage/Paypal/controllers/StandardController there is such method as successAction, which finaly redirects you to checkout/success/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));
    }
    

    In HostedproController there no successAction, there is only 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');
        }
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?