public interface OnTransactionFailureListener extends FlowListener
Transaction fails.
The transaction may fails due to invalid input provided by the user or because the payment was refused (e.g. no credit left). It is also possible that the payment fails due to some configuration issues on the wallee platform.
| Modifier and Type | Method and Description |
|---|---|
void |
onTransactionFailure(Transaction transaction,
FailureReason failureReason,
java.lang.String userFailureMessage)
This method is invoked when the transaction is considered as failed.
|
void onTransactionFailure(Transaction transaction, FailureReason failureReason, java.lang.String userFailureMessage)
userFailureMessage provides in any case a message localized to
the language of the user which explains to the app user what is going on.
The failureReason gives an explanation to the merchant resp. app developer. This
message may be logged. It can be also seen in the back office of wallee.
The implementor of this method may trigger a specific behavior in case of a failure. For example switch to a dedicated view which explains it.
transaction - the transaction which failed.failureReason - the reason which explains to the merchant what went wrong. This
message may also help the app developer to understand what is going
wrong.userFailureMessage - this message is localized in the app user's language. It gives a
user friendly explanation what is going wrong.