-1

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

I'm getting this error :

You must configure a return url.

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.

The error comes from paymentCreateAction in OrdersController.php

The error persists. What should i do ?

4

2 回答 2

1

嗨,您可以解决在 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-05-05T08:41:25.180 回答
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-23T14:54:34.197 回答