Closed ShapesGraphicStudio closed 7 years ago
Seems like the problem came from :
'PBX_EFFECTUE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'success'), UrlGeneratorInterface::ABSOLUTE_PATH),
'PBX_REFUSE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'denied'), UrlGeneratorInterface::ABSOLUTE_PATH),
'PBX_ANNULE' => $this->generateUrl('lexik_paybox_sample_return', array('status' => 'canceled'), UrlGeneratorInterface::ABSOLUTE_PATH),
...
'PBX_REPONDRE_A' => $this->generateUrl('lexik_paybox_ipn', array('time' => time()), UrlGeneratorInterface::ABSOLUTE_PATH),
Which returned : MYchoix_pagepaiement_ip.cgi[5.5.19][20649]: ERROR: Le format de PBX_ANNULE n'est pas accepté : /payment/return/canceled MYchoix_pagepaiement_ip.cgi[5.5.19][20649]: ERROR: Le format de PBX_EFFECTUE n'est pas accepté : /payment/return/success MYchoix_pagepaiement_ip.cgi[5.5.19][20649]: ERROR: Le format de PBX_REFUSE n'est pas accepté : /payment/return/denied MYchoix_pagepaiement_ip.cgi[5.5.19][20649]: ERROR: Le format de PBX_REPONDRE_A n'est pas accepté : /payment-ipn/1501864280
So I changed code to :
'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),
...
'PBX_REPONDRE_A' => $this->generateUrl('lexik_paybox_ipn', array('time' => time()), UrlGeneratorInterface::ABSOLUTE_URL),
With the help from : http://api.symfony.com/2.3/Symfony/Component/Routing/Generator/UrlGeneratorInterface.html
Hope I'm right and that it may help others. Best regards, David
Hi David,
in your last reply, i can't seem to find a difference in the second code you pasted.
i've edited your first post with *** because i don't remember if those were the demo-platform credentials (just as a security, never post your login or rank)
anyway, my configuration is based on 2 files :
config_prod.yml : this file contains my paybox production credentials config_dev.yml : this file contains the paybox demo credentials
i think it's by default on symfony2, when you go to app_dev.php it loads config_dev.yml and the other one for production obviously, are you familiar with that ?
Here is my config_dev.yml with the good demo credentials
lexik_paybox:
parameters:
# Site number provided by the bank
site: '1999888'
# Rank number provided by the bank
rank: '32'
# Customer's login provided by Paybox
login: '2'
hmac:
# Key used to compute the hmac hash, provided by Paybox
key: '0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF'
Hi, thanks for the answer.
In my code, I changed : UrlGeneratorInterface::ABSOLUTE_PATH to : UrlGeneratorInterface::ABSOLUTE_URL
So now the generateUrl part starts with http:// or https:// like PayBox support asked, otherwise I had : Le format de PBX_ANNULE n'est pas accepté.
I posted the credentials because they were from the PayBox test platform, I thought they might not be right, but that was not the problem.
Thanks David
That was my mistake in the documentation, i've commited your suggestion in 92d55f80bad30a4bfca1ca9fdb4ea347025c59ce
Take care
Hello,
I'm trying to connect with PayBox Test platform but I get : Problème d'identification du commerce. Accès refusé !
app/config/config.yml :
vendor/lexik/paybox-bundle/Controller/SampleController.php :
My form source code shows :
Any idea on what I could have wrong here please ?
Best regards, David