Android SDK
Components
Build a custom checkout flow with individual Plexy payment components
Components
When Drop-in's pre-built UI doesn't fit, embed individual Plexy Components and wire up the flow yourself. Each Component handles its own validation and emits a state callback when the user's input is valid.
val cardComponent = CardComponent.PROVIDER.get(
activity = this,
paymentMethod = cardPaymentMethod,
configuration = cardConfiguration,
callback = { state ->
if (state.isValid) {
submitPayment(state.data)
}
}
)
binding.cardView.attach(cardComponent, this)