PCIFieldState
State holder for PCI-compliant input fields in the payment form. This class manages the state of secure input fields that handle sensitive payment information, ensuring compliance with Payment Card Industry (PCI) security standards.
The state is preserved across configuration changes and process death using Compose's state restoration system. It provides a secure way to handle sensitive payment data while maintaining state consistency throughout the payment flow.
Example:
// Create a PCI field state
val state = rememberPCIFieldState()
// Use the state in a PCI-compliant text field
CardNumberTextField(
state = state,
onEvent = { event ->
// Handle events
}
)
Content copied to clipboard