我正在将jms支付捆绑包集成到symfony 2.6中。我遵循了以下中的所有文件:http://jmspaymentcorebundle.readthedocs.io/en/stable/guides/accepting_payments.html
我收到此错误:
You must configure a return url.
我已经在我的帐户中将返回URL配置为ON,但它似乎不起作用,出现相同的错误。我的确认网址是一个页面,其中有一些文本,例如:
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中的paymentCreateAction.php
错误仍然存在。我该怎么办?
您可以解决在config.yml中添加返回网址和取消网址
的问题jms_payment_paypal:
username: api username
password: api password
signature: api signature
return_url: https://yourdomain.com
cancel_url: https://yourdomain.com
debug: true
已解决,它们是指在控制器中。我补充说:
'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