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
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
24 Jan 2007 12:23 PM
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
26 Jan 2007 7:40 AM
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
31 Jan 2007 1:07 PM
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.