jms payment corebundle URL return

本小妞迷上赌 提交于 2019-12-23 06:10:06

问题


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 ?


回答1:


Hi you can solved adding return url and cancel url in your 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



回答2:


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



来源:https://stackoverflow.com/questions/42942946/jms-payment-corebundle-url-return

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!