Open khanhnt3010 opened 3 years ago
@dmengelt What do you think about this?
@khanhnt3010 sorry for the late answer. You are right. Only iOS has this feature. We are currently working an a complete new SDK (iOS and Android) which will align the error message handling between the two platforms. Also, we will release a new version of the current Android SDK in order to improve the situation. I mentioned this already here:
https://github.com/datatrans/android-sample-app/issues/10#issuecomment-795338409
For now, my suggestion is that you only have a specific mapping for the following errors:
INVALID CARD 1400
EXPIRED CARD 1402
CARD BLOCKED 1404
SOFT DECLINED 1407
For all other you have to display a generic error message.
I'm using datatrans SDK for android, we have a lof of error codes right now, I have 2 problems with the error code: