I work at Braintree. If you'd like more help than you can get here on Stack Overflow, please reach out to our support team.
Handling Braintree result objects is progressive.
If result.success?
is false
, then you check for result.errors
, which represent validation errors.
If result.errors
is nil
, then the request was valid. In this case, you will have a transaction
or verification
object just as if result.success?
was true
.
You can then look at the result.verification
's status
, processor_response_code
, gateway_rejection_reason
, etc.
The linked documentation provides more details on handling error results.