I'm getting the following error in the Drupal recent log entries after a test is declined, "Payment failed for order 6: Credit card payment declined: Sorry - Could not connect to payment gateway."

How can I troubleshoot the specific problem? I setup a test account on http://staging.linkpt.net/ and I think I configured everything properly including the PEM file that I got from that test system and the 10-digit store number. Is there a way to troubleshoot what specific setting I may have gotten wrong?

Any assistance will be greatly appreciated.

CommentFileSizeAuthor
#3 watchdog_fix.patch2.05 KBryandekker

Comments

Jackinloadup’s picture

Im having the same issue. Mullman did you ever find a solution? will post solution if found.

Jackinloadup’s picture

My solution was path problems... My path to the PEM file was incorrect.

ryandekker’s picture

StatusFileSize
new2.05 KB

I had this problem too, and my file was misnamed. I noticed that the watchdog entries for 'uc_linkpoint_api' were all blank so I went ahead and poked around in there. watchdog was receiving the wrong arguments and wasn't a lot of help once I got it to output.

The attached patch fixes the watchdog issue and makes some improvements to the error messages and the description for the PEM file.

pinchg’s picture

This isn't much of a solution but I dealt with the same problem for a long time. The issue is that linkpt staging server has an expired cert that the code is choking on. Someone will need to update the module to deal with that. I ended up just doing some testing on the live server. The $20 or so that I wasted running transactions through was nothing compared to the time I would have wasted trying to deal with it.

millenniumtree’s picture

Thanks, Ryan. (#3)

This patch should immediately be applied to the code as a release - without useful error logging, how are we to fix the problems that occur?

Once we got a valid error message, it became obvious that our PEM wasn't valid for the production server. The path was fine, but the cert wasn't.

mikeejt’s picture

ryandekker, thanks again for your patch. This saved me a lot of time. I had the same error as you did. I have shared hosting, and didn't know that my home directory mapped to /home/xxx/.

I appended /home/xxx/ to the location of the pem file (/www/linkpoint/xxx.pem) and it worked. Thanks dude!

jrust’s picture

Status: Active » Fixed

Thanks, patch applied in CVS.

Status: Fixed » Closed (fixed)

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

sreynen’s picture

Status: Closed (fixed) » Reviewed & tested by the community

It looks like this change was somehow reverted between 1.3 and 1.4.

jrust’s picture

Status: Reviewed & tested by the community » Fixed

Argh, need to start working off CVS in my live projects. Applied again.

Status: Fixed » Closed (fixed)

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