Copyright James Shaw 2004-2007
Newbie tip. This is good:
if (error.Contains("Declined"))..
Not so much:
if (error.IndexOf("Declined") != -1)..
Guess which seems to be more common in code
P.S. Yes, I have old code with examples of the latter. Doesn't count.