public interface FragmentTerminationListener
AbstractPaymentFragment.
The implementor has essentially the option to react on basic outcomes of the payment process. Either it was successful or it failed. These events allows the implementor the option to show a corresponding error message and switch into a different activity or return to the starting point in case of a failure.
| Modifier and Type | Method and Description |
|---|---|
void |
onFailureTermination(java.lang.String userMessage,
Transaction transaction)
This method is invoked when something went wrong.
|
void |
onSuccessfulTermination(Transaction transaction)
This method is invoked when the
transaction is successfully completed. |
void onSuccessfulTermination(Transaction transaction)
transaction is successfully completed.transaction - the transaction which is completed successfully.void onFailureTermination(java.lang.String userMessage,
Transaction transaction)
When this method is invoked normally restarting of the whole flow make sense including creating a new transaction.
userMessage - this gives a suitable message which can be shown to the user.transaction - the transaction object. This value can be null when the
transaction was not created or used until the failure.