Just wanted to toss this out to whomever is using this API. I'm using linkpnt via YourPay and found an issue with this where I'd get errors: SGS-020003.
This is an invalid XML error. After much lack of help from their support,
I found this in their manual:
SGS-020003: Invalid XML
There are a couple different things that will cause this error.
1. Make sure the amount for chargetotal is not blank.
2. Make sure expiration year is only 2 digits
3. Make sure there is no dollar sign for the amount.
4. Make sure there are no symbols like an ampersand,
apostrophe, or letters with accents
5. If there is no shipping make sure you pass zero for the amount
6. Make sure there are no commas in the amount for chargetotal
The issue I have is a LOT of my commercial customers have an & or an
apostrophe in their company names.
I had to add the following to the module:
/* remove ampersand and appostrophes from text */
$xml = str_replace("&", "and", $xml);
$xml = str_replace("'", " ", $xml);
/* end scrub */Now things are happier.
R. Marc
