Hi,

Been implementing this module on a new site, yet to be launched (www.hcpmedical.fr) who are with WebAffaires (Crédit du Nord) and I had big problems getting things working properly. We are in demo mode at the moment, and I was only ale to get "Response attempted without any POST data." messages in watchdog.

I have discovered 2 things that need amending for WebAffaires to work:

1. Don't check for 'customer_email' in _commerce_atos_request_response_match() - Webaffaires doesn't sent it back in its response

2. Amend commerce_atos_redirect_form_validate() and commerce_atos_payment_autoresponse() to look for $_GET['DATA'] if $_POST['DATA'] doesn't exist - WebAffaires passed its encrypted response back as a URL parameter, and not as a form post.

Hope this information helps someone save some time 'cos it had been going round in circles for a while!

Regards,

- Paul

CommentFileSizeAuthor
commerce_atos_webaffaires.patch3.93 KBpaulbeaney
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jsacksick’s picture

That's not really a bug, By default the module is configured for an automatic redirect, If so then the response is gonna be sent in $_GET but the autoresponse stays in $_POST, so that's enough (I'm 100% sure that if you check the order the payment will be made), we may just want to change the watchdog message and not display it in the case of an automatic redirect.

paulbeaney’s picture

Hi,

Thanks for your comments. I'd like to think this isn't a bug, but the problem I have is that if I don't make those changes as per my patch, I can't take any payments at all. In the case of a "successful" payment (e.g. card number 4974934125497800 and CVV 600) , I simply get returned to the checkout page with the message "Payment failed at the payment server..."), which I presume is because the validate_callback fails.

If it was just a question of spurious watchdog messages, I could live with it, but as it affects the entire payment process this is something of a show-stopper.

Any ideas? Presumably this wouldn't be specific to WebAffaires? I'm going to be using our real merchant ID in pre-prod mode soon, so perhaps that will change things?

Regards,

- Paul

jsacksick’s picture

Status: Active » Fixed

I'm now checking the $_GET in commerce_atos_redirect_form_validate and not checking the customer_email anymore. The autoresponse should be still sent in $_POST.

paulbeaney’s picture

Thanks jsacksick ,

We're now in production mode and initial tests indicate that the WebAffaires integration is working perfectly. Just waiting for the orders to start pouring in!

Regards,

- Paul

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.