jms payment corebundle integtation issue URL return

264 views Asked by At

I'm integration 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 persists. What should i do ?

1

There are 1 answers

0
Haythem Belhadj On BEST ANSWER

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),

For more documentation http://jmspaymentpaypalbundle.readthedocs.io/en/latest/usage.html