public interface OnTransactionSuccessListener extends FlowListener
Transaction
succeeds.| Modifier and Type | Method and Description |
|---|---|
void |
onTransactionSuccess(Transaction transaction)
This method is called when the
transaction is considered as successful. |
void onTransactionSuccess(Transaction transaction)
transaction is considered as successful.
Be aware if someone is decompile the app this method can be also invoked. There is no guarantee that the invocation of this method is secured. Means someone can trigger it even the transaction is not successful. As such any action taken within this method it should only affect the user interface. To enable something or to grant something a webhook should be used to inform the app backend. So with other words: The implementor of this listener should not trigger something in the app backend. This should be done through a webhook.
transaction - the transaction which succeeds.