问题描述
我将jms付款包集成在symfony 2.6中.我关注了以下所有文档: http://jmspaymentcorebundle.readthedocs.io/en /stable/guides/accepting_payments.html
I'm integrating the jms payment bundle in symfony 2.6. I had followed all document in : http://jmspaymentcorebundle.readthedocs.io/en/stable/guides/accepting_payments.html
我遇到此错误:
You must configure a return url.
我已在我的帐户中将返回URL配置为ON,但似乎不起作用,并得到了相同的错误.我的确认网址是一个页面,其中包含一些文本:
I had configured the return URL into ON in my account , and it seems not working, getting the same error. My confirmation url is a page in which there is some text like :
Thank you for your payment. Your transaction has been completed,
and a receipt for your purchase has been emailed to you.
You may log into your account at www.paypal.com to view details of this transaction.
错误来自 OrdersController.php
错误仍然存在.我该怎么办?
The error persists. What should i do ?
推荐答案
已解决,它们表示控制器中.我添加了:
Solved , they mean in the controller.I added :
'predefined_data' => array(
'paypal_express_checkout' => array(
'return_url' => $this->generateUrl('payment_complete', array(
'orderNumber' => $order->getOrderNumber(),
), true),
有关更多文档,请 http://jmspaymentpaypalbundle.readthedocs.io/en/latest/usage.html
这篇关于jms付款corebundle URL返回的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!