View Single Post
  #24  
Old 07-01-2004, 09:23 AM
 
markroyko markroyko is offline
 

Newbie
  
Join Date: Apr 2004
Posts: 6
 

Default fix for javascript and linkpoint

Actually, if you're using the drop-down method seen in earlier posts, there's really no reason to re-validate with the javascript. (Since it only checks for string value entry errors, and presumably, these kind of errors would no longer exist.....) With that in mind, I just skipped the expiration date-checking js altogether by changing the following in checkout.tpl. Change it from this (at around line 53):
to this:
That takes care of the js errors.

....Also, I use linkpoint and had to change the following on lines 59 and 60 in the cc_linkpoint.php file to reflect the new post variables. (There's no need to search for individual entries in the card_expire string.....), so change from this:
Code:
$post[] = "<cardexpmonth>".substr($userinfo["card_expire"],0,2)."</cardexpmonth>"; $post[] = "<cardexpyear>".substr($userinfo["card_expire"],2,2)."</cardexpyear>";

to this:
Code:
$post[] = "<cardexpmonth>".$userinfo["card_expire_month"]."</cardexpmonth>"; $post[] = "<cardexpyear>".$userinfo["card_expire_year"]."</cardexpyear>";


You may need to do something similar with other payment gateways.
__________________
www.markroyko.com
Reply With Quote