callbackContinuation

Helper function to get the result of a Kotlin coroutine continuation in a callback.

You should use this function if you can't use Kotlin coroutines when invoking suspending functions in the Bank SDK's public API (e.g., GiniBank.getPaymentRequest() or GiniBank.resolvePaymentRequest()).

Parameters

callback

to return the continuation result

looper

to use for invoking the callback on a specific thread (using a Handler)