Mangopay / cardregistration-js-kit

Mangopay V2 JS resources for card registration front-end workflow
MIT License
38 stars 34 forks source link

Uncaught exceptions and unhelpful error message #15

Closed Changaco closed 8 years ago

Changaco commented 8 years ago

This kit doesn't properly handle the various ways in which requests can fail: it doesn't catch exceptions, and it only returns a generic message like "Token processing error" if it detects an error, which can lead you to think the PSP is having difficulties, when in fact it's just the user's browser or network messing up.

I'll make a pull request later.