【问题标题】:jms payment corebundle URL returnjms支付corebundle URL返回
【发布时间】:2017-08-14 01:17:12
【问题描述】:

我正在 symfony 2.6 中集成 jms 支付包。我已经关注了所有文档: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.php

中的 paymentCreateAction

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

【问题讨论】:

    标签: php symfony paypal jmspaymentpaypalbundle


    【解决方案1】:

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

        '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

    【讨论】:

      【解决方案2】:

      您好,您可以解决在 config.yml 中添加返回 url 和取消 url

      jms_payment_paypal:
          username: api username
          password: api password
          signature: api signature
          return_url: https://yourdomain.com
          cancel_url: https://yourdomain.com
          debug: true
      

      【讨论】:

        猜你喜欢
        • 2017-08-13
        • 2012-11-12
        • 2016-01-27
        • 2021-05-10
        • 2018-02-11
        • 2016-01-13
        • 2011-08-27
        • 2018-01-26
        • 2016-04-17
        相关资源
        最近更新 更多