Closed ShapesGraphicStudio closed 7 years ago
Hi David,
are you talking about the IPN or user redirect ?
IPN route is defined in your controller here :
'PBX_REPONDRE_A' => $this->generateUrl('lexik_paybox_ipn', array('time' => time()), UrlGeneratorInterface::ABSOLUTE_URL),
User redirection is :
'PBX_EFFECTUE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'success'), UrlGeneratorInterface::ABSOLUTE_URL),
'PBX_REFUSE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'denied'), UrlGeneratorInterface::ABSOLUTE_URL),
'PBX_ANNULE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'canceled'), UrlGeneratorInterface::ABSOLUTE_URL),
Here you have the route 'lexik_paybox_sample_return', is that correct for your context ?
Cheers, James
Hi, Of course that's right, feeling a bit stupid here, thanks for the highlight. Best regards, David
Hello,
I managed to have my own controller to be able to put the files in my app bundle.
I call the payment method in twig with : {{ render(controller('AppBundle:Membership:OneYear')) }}
My MembershipController.php looks like :
It all works fine until the response from PayBox, the script seems to still use the public function returnAction(Request $request, $status) from the SampleController.php and not from my MembershipController.php.
Any idea on what I could do wrong here or have forgotten please ?
Best regards, David