errorFor

Method to extract an error for an individual field, e.g. creditCard, customer, etc.

Return

BraintreeError for the field searched, or null if not found.

Parameters

field

Name of the field desired, expected to be in camelCase.