Payment Card Cvv View
Convenience view for collecting CVV details from a user
Important:
User-entered CVV details are intentionally restricted for PCI compliance
Styling/Branding
This class can be styled in the following ways:
Override general-purpose resource values
Set styles programmatically
Override general-purpose resource values
Overriding general-purpose resource values is the easiest way to control the look/feel of the views in the Olo Pay SDK. Changing these values (listed below) will apply to not just PaymentCardCvvView, but also PaymentCardDetailsSingleLineView and PaymentCardDetailsMultiLineView. To override the resources, simply define resources in your app with the same names listed below
Color Resources
olopay_edittext_textcolor
olopay_errortext_textcolor
Set styles programmatically
A number of methods exist that allow you to style PaymentCardCvvView. Methods exist for changing the background style (color, border, radius, etc), the text colors, error text colors, hint text colors, font, and font size.
Constructors
Creates a new instance of PaymentCardCvvView
Properties
Set this to receive callbacks about card input events for this control
Get an ICvvTokenParams instance that can be used to create an ICvvUpdateToken instance. If the field is not valid this will return null.
Whether or not to display built-in error messages
Provides a snapshot of the current state of the field
Functions
Dismisses the keyboard, if visible, and removes focus from the input field in this control
Get the error message that would be displayed if isValid is false. Note that isValid having a value of false
does not necessarily mean there will be an error message (see ignoreUneditedFieldErrors param)
Check if there is an error message to be displayed.
Moves focus to the input field
Sets the color for the cursor, selection handles, and text selection highlight
Sets background styles for this view.
Sets the padding for the area immediately surrounding the CVV input
Enables or disables the control
Sets the error font for the error message
Sets the padding for the error message displayed below the CVV input
Sets the error text color for the CVV input and error message
Sets the text size for the error message
Sets the gravity for this view
Sets the hint text for the CVV input
Sets the hint text color for the CVV input
Sets the text color for the CVV input
Sets the text size for the CVV input