diff --git a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt
index c5925074..32530ad1 100644
--- a/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt
+++ b/sample-app/src/main/java/com/joinforage/android/example/ui/complete/flow/tokenize/FlowTokenizeFragment.kt
@@ -60,6 +60,7 @@ class FlowTokenizeFragment : Fragment() {
val isComplete: TextView = binding.isComplete
val isEmpty: TextView = binding.isEmpty
val isValid: TextView = binding.isValid
+ val usState: TextView = binding.usState
fun setState() {
val state = foragePanEditText.getElementState()
@@ -67,6 +68,7 @@ class FlowTokenizeFragment : Fragment() {
isComplete.text = "isComplete: ${state.isComplete}"
isEmpty.text = "isEmpty: ${state.isEmpty}"
isValid.text = "isValid: ${state.isValid}"
+ usState.text = "usState: ${state.details.derivedCardInfo?.usState?.abbreviation}"
}
foragePanEditText.setOnFocusEventListener { setState() }
@@ -77,6 +79,7 @@ class FlowTokenizeFragment : Fragment() {
isComplete.text = "isComplete: ${state.isComplete}"
isEmpty.text = "isEmpty: ${state.isEmpty}"
isValid.text = "isValid: ${state.isValid}"
+ usState.text ="usState: ${state.details.derivedCardInfo?.usState?.abbreviation}"
viewModel.paymentMethod.observe(viewLifecycleOwner) {
when (it == null) {
diff --git a/sample-app/src/main/res/layout/fragment_flow_tokenize.xml b/sample-app/src/main/res/layout/fragment_flow_tokenize.xml
index 1dc779a4..32768291 100644
--- a/sample-app/src/main/res/layout/fragment_flow_tokenize.xml
+++ b/sample-app/src/main/res/layout/fragment_flow_tokenize.xml
@@ -132,6 +132,21 @@
app:layout_constraintVertical_bias="0.0"
tools:text="isValid: false" />
+
+