Quote Originally Posted by swguy View Post
That's good to hear - the customers in question are not exactly tech savvy and couldn't report on their experience.
I'm not positive what $error->getCode() is going to return - can we look for this particular message and say something like "try another card?"
ok, i have simulated a few errors. the details provided on this page:

https://developer.squareup.com/refer...nums/ErrorCode

are not available in the response.

in addition, it seems that the getDetail provides all of the information in the getCode method. so having both of those in the message could look confusing.

i will look into providing a config option so that a generic message could be chosen rather the specific message as opposed to doing a notifier. and then you can have a choice. hope that works for you.

when an error comes up here is what one can present back to the customer:

https://www.dropbox.com/s/vrh971v5ui...thods.png?dl=0

best.