OPPYooKassaInfo
@objc
public final class OPPYooKassaInfo : NSObject
Class to represent YooKassa parameters needed for performing transaction.
-
Status of YooKassa payment.
Declaration
Swift
@objc public private(set) var status: OPPYooKassaStatus { get }
-
The URL string to redirect the user to confirm payment.
Declaration
Swift
@objc public private(set) var confirmationUrl: String? { get }
-
The URL string to notify backend about payment completion.
Declaration
Swift
@objc public private(set) var callbackUrl: String? { get }
-
Creates YooKassa info object with the provided status, confirmation and callback urls.
Declaration
Swift
@objc public init?(status: OPPYooKassaStatus, confirmationUrl: String?, callbackUrl: String?)
Parameters
status
Status of YooKassa payment.
confirmationUrl
The URL string to redirect the user to confirm payment.
callbackUrl
The URL string to notify backend about payment completion.
Return Value
Returns an
OPPYooKassaInfo
object. -
Creates YooKassa info object with the provided status, confirmation and callback urls.
Declaration
Swift
@objc public static func yooKassaInfo(with status: OPPYooKassaStatus, confirmationUrl: String?, callbackUrl: String?) -> OPPYooKassaInfo?
Parameters
status
Status of YooKassa payment.
confirmationUrl
The URL string to redirect the user to confirm payment.
callbackUrl
The URL string to notify backend about payment completion.
Return Value
Returns an
OPPYooKassaInfo
object.