get Error Message
Get the error message that would be displayed if displayErrors is true
and isValid is false. Note that isValid having a value of false
does not necessarily mean there will be an error message (see ignoreUneditedFieldErrors param)
Return
An error message that can be displayed to the user (e.g. in a custom dialog)
Error message text can be customized by defining the following string resources in your app:
olopay_invalid_card_number_error
olopay_empty_card_number_error
olopay_invalid_expiration_error
olopay_empty_expiration_error
olopay_invalid_cvc_error
olopay_empty_cvc_error
olopay_empty_postal_code_error
olopay_invalid_postal_code_error
olopay_invalid_card_details_error
Content copied to clipboard
Parameters
ignore Unedited Field Errors
If true (default value), only fields that have been edited by the user will be considered. "Edited" means the user has entered text and focus has changed to another field (note: empty fields are considered edited if text was entered and then later deleted)