付款流程后,Paypal重定向页面

时间:2016-09-13 08:15:37

标签: php symfony paypal

我希望在使用paypal支付流程后显示模板页面。 这是指向重定向页面的paypal按钮的代码:

<input type="hidden" name="return" value="http://site.mysite.local:83/buyOk">


<input type="hidden" name="rm" value="2"> //return URL using POST method

我创建了一个名为buy_process_ok.html.php的模板php文件,并在控制器中创建了函数:

    /**
     * @Route("/buyOk")
     */

    public function buyProcessOkAction() {

        return $this->renderView('UserBundle:Account:buy_process_ok.html.php');

    }

在付款流程结束时,我收到此错误:

No route found for "POST /buyOk"

我哪里错了?

0 个答案:

没有答案
相关问题