VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 The & Symbol - kills authorization
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

telesites net
Starting Member

46 Posts

Posted - October 10 2005 :  13:23:07  Show Profile  Visit telesites net's Homepage  Reply with Quote
We had this happen several times now and tracked down the problem.

Whenever a Company name has the & sign in it (i.e.- Johnson & Johnson) this kills the check out process on our merchant services end. They do not allow this sign in the company name field. While VPASP allows it to go thorough with no problem once it hits the merchant process it kills the deal. Our customer gets a page cannot be found error.

Anyone using Card Services International and realtime processing will have this issue.

Perhaps there is some way to change the "&" to "and" automatically - before we send the info to authorization?

Set your sites here!

Senior Member

United Kingdom
1898 Posts

Posted - October 10 2005 :  14:28:40  Show Profile  Visit devshb's Homepage  Reply with Quote
It'll depend on the gateway that's being used; some gateways will be able to cater for it, while others will have problems (generally it depends on how the arguments are passed across; as form/field postings, or as url arguments) and how they're processed by the gateway asp page on your local site. Some gateway interfaces automatically translate/encode things to cater for it, and some don't.

What you could do is just wrap the field in the gateway asp file around a replace function. For example, you might change from:




in your gateway asp file.

However, note that you can only use Replace on non-null values, otherwise you'll get a vbscript error, so if the value is optional, then you're better off with something like this:

if (objrs("itemname")<>"" and IsNull(objrs("itemname"))=false) then
end if

If you want to apply that logic all over the place, then you can create a central function, added to, say, shop$db.asp:

Function TranslateArgForGateway(arg_in_value)
if (arg_in_value="" or IsNull(arg_in_value)=true) then
exit function
end if
End Function

then use that in your gateway asp file when you create the values, such as:


Simon Barnaby
[email protected]

Edited by - devshb on October 10 2005 14:37:23
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000