OPPYooKassaInfo
@interface OPPYooKassaInfo : NSObject
Class to represent YooKassa parameters needed for performing transaction.
-
Creates YooKassa info object with the provided status, confirmation and callback urls.
Declaration
Objective-C
+ (nullable instancetype) yooKassaInfoWithStatus:(OPPYooKassaStatus)status confirmationUrl:(nullable NSString *)confirmationUrl callbackUrl:(nullable NSString *)callbackUrl;
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
an
OPPYooKassaInfo
object. -
Creates YooKassa info object with the provided status, confirmation and callback urls.
Declaration
Objective-C
- (nullable instancetype)initWithStatus:(OPPYooKassaStatus)status confirmationUrl:(nullable NSString *)confirmationUrl callbackUrl:(nullable NSString *)callbackUrl;
Swift
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
an
OPPYooKassaInfo
object.
-
Status of YooKassa payment.
Declaration
Objective-C
@property (nonatomic, readonly) OPPYooKassaStatus status;
Swift
var status: OPPYooKassaStatus { get }
-
The URL string to redirect the user to confirm payment.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *confirmationUrl;
Swift
var confirmationUrl: String? { get }
-
The URL string to notify backend about payment completion.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *callbackUrl;
Swift
var callbackUrl: String? { get }