Long Polling
class LongPolling
Class responsible for monitoring transaction state. When started with start it continues to send requests even when network exceptions occur.
Stops automatically when TransactionState is CORRECT, PAID, ERROR or DECLINED. Can be stopped with stop method. Stops automatically when maximum number of requests from LongPollingConfig is achieved.
Constructors
Functions
Link copied to clipboard
fun start(transactionId: String, longPollingConfig: LongPollingConfig, isBlikPayment: Boolean = false)
Function responsible for starting long polling on transaction with specified transactionId