user language in payment module

is is possible to pass the language variable to a payment module, i can send to my payment gateway a specified language but am not sure how to pass this variable into the script in the first place.

Any ideas would be welcome.

ok i think i have found the solution

if (CART_LANGUAGE == "EN") {
$user_language = englishvalue;
} else {
$user_language = otherlanguage;