Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
charleshays
charleshays
Adding a new payment method for Cybersource API, problem I am having atm is that my Paramter Name fields are getting set to all lower case when being passed to my custom method cart
 
$pass_data = array();
foreach ($payment_parameters as $parameter_name => $parameter_value)
{
if(isset($pass_parameters[$parameter_name]) && $pass_parameters[$parameter_name] == 1)
{
$pass_data[$parameter_name] = trim($parameter_value);
echo '<LI>'.$parameter_name.'='.$parameter_value;
}
}
 
Where a variable in $paramter_name should be billTo_firstName it is getting sent as billto_firstname. Now I guess I could simply remap these in my script but I don't think Viart should be dictating character case in this way.
 
 
Last modified: 31 Jan 2007 1:07 PM
 
Anjula
Anjula
Hi,
 
In this case, we would recommend to use a lowercase function to exclude case sensitive problems and you can call the variables using lower letters.
Probably, in future versions we will support both variants: case sensitive and lower case variables.
 
Regards,
ViArt Support Team
 
charleshays
charleshays
I have to include these via case sensitive variable pairs (key + value) as an associate array to a special library which encrypts this and sends it to the CyberSource CC authorization system. I've simply remapped all these after I get them as lower case into the correct case version. But as I said Viart shouldn't dictate case in this manner. Whaterver Parameter names I add into the Paramter List should be passed back EXACTLY as they were entered. I know that is not the case for all gateways but in some it definantly is. If case needs to be ensured one way the other then it needs be handled inside the Payment System API for that particualr gateway without the extra work of remapping.
 
Anjula
Anjula
Hi,
 
In our future releases the variables will be passed to this array exactly as they have passed by the payment system and for compatibility with previous versions the lower case copies will be passed as well.
 
Regards,
ViArt Support Team