Re: Linkpoint API Payment Module

Nick's picture
Offline
Joined: 08/17/2007
Juice: 95
Re: Linkpoint API Payment Module

I was getting an error telling me the Credit Card Expiration Year was incorrect when I tried to process credit cards. I did a little more research and found linkpoint needs the years to be in 2 digits instead of 4 digits.

In the linkpoint module there is a line that is supposed to truncate the year down to 2 digits:

$xml .="<cardexpyear>" . date('y', $order->payment_details['cc_exp_year']) . "</cardexpyear> ";

This wasn't working for me so I removed that line and replaced it with:

$cardexpyr = substr($order->payment_details['cc_exp_year'], 2, 2);
$xml .="<cardexpyear>" . $cardexpyr . "</cardexpyear> ";

As of 10/8/2007 this module appears to be fully functioning for me.

Linkpoint API Payment Module By: Nick (51 replies) Sun, 09/30/2007 - 15:02