Payment sessions
Payment session — this is every attempt by the user to pay for an order. Regardless of whether it was successful or not.
Kotlin Multiplatform
Getting all payment sessions
This is an array of payments made by the user through all available methods. Since the volume of this data can be large, we recommend not to neglect pagination.
val result = PaymentsService.sessions(
offset = 0,
limit = 30
)
val sessions = result.items
Getting a payment session by its identifier
val sessionsId: Int = //...
val result = PaymentsService.session(sessionsId)
Swift
Getting all payment sessions
This is an array of payments made by the user through all available methods. Since the volume of this data can be large, we recommend not to neglect pagination.
let result = try await PaymentsService.shared.sessions(
offset: 0,
limit: 30
)
let payments = result.items()
Getting a payment session by its identifier
let sessionsId: Int = //...
let result = try await PaymentsService.shared.session(id: sessionsId)
Last modified: 18 February 2025