Forage Pan Element
A ForageElement that securely collects a customer's card number. You need a ForagePanElement to call the ForageSDK online-only method to com.joinforage.forage.android.ForageSDK.tokenizeEBTCard, or the ForageTerminalSDK POS method to com.joinforage.forage.android.pos.ForageTerminalSDK.tokenizeCard.
<!-- Example forage_pan_component.xml -->
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.joinforage.forage.android.ui.ForagePANEditText
android:id="@+id/foragePanEditText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
See also
Inheritors
Constructors
Properties
Functions
Gets the current ElementState state of the ForageElement.
Sets the border color of the input field.
Sets the border thickness of the input field.
Sets the border thickness of the input field when the field is in focus state.
Sets the necessary ForageConfig configuration properties for a ForageElement. setForageConfig must be called before any other methods can be executed on the Element.
Sets the hint text color.
Sets an event listener to be fired when the ForageElement is blurred.
Sets an event listener to be fired when the text inside the ForageElement input field changes.
Sets an event listener to be fired when the ForageElement is in focus.
Sets the text color for the ForageElement.
Sets the text size for the ForageElement.
Explicitly request that the current input method's soft input be shown to the user, if needed. This only has an effect if the ForageElement is focused, which can be done using .requestFocus()