String replace abbr "St." with whole word "Saint"
Posted on 2013-12-17
I am using a paypal express payment gateway on a wordpress shopping cart install, and recently, some of my client's customers have had trouble with paypal returning an error page when they try to check out. Apparently, the problem has to do with address matching against how we very often use "St. Louis" and "St. Charles" Either paypal or the shopping cart plugin don't like the abbreviated versions, and will only work if the user enters "Saint Louis" or "Saint Charles" instead. Can anyone help me come up with an easy validation script or something to convert "St." if entered into "Saint" before passing the transaction on to paypal, or even better, checking for it when the user leaves the city field.
The website is jdvirginhair.com