内购StoreKit->SKPayment.h

内购StoreKit->SKPayment.h


@interface SKPayment : NSObject <NSCopying, NSMutableCopying> {
     

+ (instancetype)paymentWithProduct:(SKProduct *)product;
// 在使用SKProductsRequest获取可见的products后使用 +paymentWithProduct:
+ (id)paymentWithProductIdentifier:(NSString *)identifier
// 与appStroe对应的标识符, 必选参数
@property(nonatomic, copy, readonly) NSString *productIdentifier;
// 与商店对应的付款请求数据。可选
@property(nonatomic, copy, readonly, nullable) NSData *requestData;
// 默认1, 优先级.
@property(nonatomic, readonly) NSInteger quantity;
// 使用者信息, 可选
@property(nonatomic, copy, readonly, nullable) NSString *applicationUsername;
// 在沙箱中强制执行此付款的“购买请求”流程 (iOS8.3以上版本)
@property(nonatomic, readonly) BOOL simulatesAskToBuyInSandbox;
// 指定折扣的相关数据将适用于此付款。可选的。(iOS12.2 以上版本)
@property(nonatomic, copy, readonly, nullable) SKPaymentDiscount *paymentDiscount;

@end

@interface SKMutablePayment : SKPayment

@property(nonatomic, copy, readwrite, nullable) NSString *applicationUsername;
@property(nonatomic, copy, readwrite, nullable) SKPaymentDiscount *paymentDiscount;
@property(nonatomic, copy, readwrite) NSString *productIdentifier;
@property(nonatomic, readwrite) NSInteger quantity;
@property(nonatomic, copy, readwrite, nullable) NSData *requestData;
@property(nonatomic, readwrite) BOOL simulatesAskToBuyInSandbox;

@end


你可能感兴趣的:(内购)