OperationCallback

interface OperationCallback<T>

Result callback for direct (non-UI) operations such as capture, void, refund and recurring charges. Exactly one method runs, on the main thread.

onSuccess means the gateway accepted the request with HTTP 200; inspect the returned model's status/result field for the business outcome.

Functions

Link copied to clipboard
abstract fun onFailure(error: PaymentError)
Link copied to clipboard
abstract fun onSuccess(result: T)