You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already came to you with issue braintree/braintree-web#644 and this is a request for better error handling.
There was an error during 3DSecure validation process. I contacted Braintree support and we found out that the user's address (passed to threeDSecure args) exceeds the limit. The original error deeply inside the system was "Billing line1 format is invalid".
While the immediate error said something useless like "Something went wrong during 3D Secure authentication" which forced me to contact you and BT support for more details.
Once I managed to reproduce the issue (with address line more than 50 chars) - I discovered locally that the ex error has much more info under the hood placed in _braintreeWebError property. It contains something like the following:
{
"originalError": {
"name": "BraintreeError",
"code": "CLIENT_REQUEST_ERROR",
"message": "There was a problem with your request.",
"type": "NETWORK",
"details": {
"originalError": {
"error": {"message": "Billing line1 format is invalid."},
"threeDSecureInfo": {"liabilityShifted": false, "liabilityShiftPossible": false},
}, "httpStatus": 422,
},
},
}
The problem is the property is not documented and I have to use it on my own risk to see a bit more about the true underlying error.
@vladminsky thanks for reaching out, I agree we can make our error messaging more robust, particularly for 3DS workflows. I don't have an ETA on when this will get added but this is on our radar!
General information
Issue description
I already came to you with issue braintree/braintree-web#644 and this is a request for better error handling.
There was an error during 3DSecure validation process. I contacted Braintree support and we found out that the user's address (passed to threeDSecure args) exceeds the limit. The original error deeply inside the system was "Billing line1 format is invalid".
While the immediate error said something useless like "Something went wrong during 3D Secure authentication" which forced me to contact you and BT support for more details.
Once I managed to reproduce the issue (with address line more than 50 chars) - I discovered locally that the
ex
error has much more info under the hood placed in_braintreeWebError
property. It contains something like the following:The problem is the property is not documented and I have to use it on my own risk to see a bit more about the true underlying error.
So I want to ask you to consider this git issue as a feature request for better (more detailed and well documented) error handling in braintree-web library since current approach to error handling is too superficial and documentation is quite poor on this topic (https://braintree.github.io/braintree-web-drop-in/docs/current/Dropin.html#requestPaymentMethod-examples).
Thank you in advance
The text was updated successfully, but these errors were encountered: