CurrencyExchangeService

Interface for currency exchange operations.

Functions

Link copied to clipboard
abstract suspend fun createQuote(fxRateRequest: FxRateRequest): FxRate

Create currency exchange rate quote for specific currency to specific target currency from Paysafe.

Link copied to clipboard
open fun createQuoteAsync(fxRateRequest: FxRateRequest, cancellationSignal: CancellationSignal?, callback: WalletCallback<FxRate>)

Asynchronously create currency exchange rate quote for specific currency to specific target currency from Paysafe.

Link copied to clipboard
abstract suspend fun getQuote(quoteId: String): FxRate

Get currency exchange rate quote from Paysafe.

Link copied to clipboard
open fun getQuoteAsync(quoteId: String, cancellationSignal: CancellationSignal?, callback: WalletCallback<FxRate>)

Asynchronously get currency exchange rate quote from Paysafe.