0

我在 symfony 2.6 中集成了 jms 支付包。我遵循了以下所有文件:http: //jmspaymentcorebundle.readthedocs.io/en/stable/guides/accepting_payments.html

我收到此错误:

 You must configure a return url.

我已在我的帐户中将返回 URL 配置为 ON ,但它似乎不起作用,出现相同的错误。我的确认 url 是一个页面,其中有一些文本,例如:

  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.

错误仍然存​​在。我应该怎么办 ?

4

1 回答 1

0

解决了,它们的意思是在控制器中。我补充说:

'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

于 2017-03-23T15:12:25.520 回答