public interface TokenListViewFactory
The token list allows the user to select from a list of stored payment details (like card or a PayPal account). The list is generated based up on the transaction and as such on the customer ID set on the transaction.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TokenListViewFactory.TokenViewListener
This listener is responsible for handling all events triggered from within the token list
view.
|
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
build(android.view.ViewGroup parent,
TokenListViewFactory.TokenViewListener listener,
java.util.List<TokenVersion> tokens,
java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
This method is invoked to create a view which allows the user to select from a list of tokens
one which should be used to execute the payment.
|
android.view.View build(android.view.ViewGroup parent,
TokenListViewFactory.TokenViewListener listener,
java.util.List<TokenVersion> tokens,
java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
The implementor does not need to insert the created view into the parent. This is done by the caller of the method.
parent - the parent view into which the token list will be inserted into.listener - the listener which is listening on the selected token.tokens - the list of tokens to display.icons - the icons which can be used within the token list.