public interface FailureViewFactory
A transaction may fail during the authorization. This factory creates a view which is shown in this situation. The view should explain to the user why it is failing.
Implementing a dedicated factory allows to override the view shown to the user.
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
build(android.view.ViewGroup parent,
Transaction transaction)
This method is responsible to create the view which is shown to the customer when the
transaction is failing.
|
android.view.View build(android.view.ViewGroup parent,
Transaction transaction)
The implementor does not have to add the created view into the parent.
The Transaction.getUserFailureMessage() describes in the user language what went
wrong.
parent - the parent view into which the created view is integrated into.transaction - the transaction which is failed.