LMPaymentCore Class Reference
Inherits from | NSObject |
---|---|
Declared in | LMPaymentCore.h LMPaymentCore.m |
Other Methods
– paymentObserverStart
开启交易状态监听 (必须在用户登陆后调用) 开启后,会自动向IAP服务器同步一次未完成的交易,请不要重复调用
- (void)paymentObserverStart
Declared In
LMPaymentCore.h
– iapPayWithProductID:groupKey:
根据档位ID发起IAP支付
- (void)iapPayWithProductID:(NSString *)productID groupKey:(nullable NSString *)groupKey
Parameters
productID |
档位ID |
---|---|
groupKey |
服务端使用参数,从档位列表获取得来,客户端本身用不到 |
Declared In
LMPaymentCore.h
– revocerTransitionManually
手动恢复交易,请求是否有未完成的交易
- (void)revocerTransitionManually
Declared In
LMPaymentCore.h
– isVipProduct:
当前档位是否是VIP
- (BOOL)isVipProduct:(NSString *)product_id
Parameters
product_id |
档位ID |
---|
Declared In
LMPaymentCore.h
Other Methods
– requestUnfinishTransactionWithProductID:
请求是否有未完成的交易
- (void)requestUnfinishTransactionWithProductID:(NSString *)productID
Parameters
productID |
档位ID |
---|
Declared In
LMPaymentCore.m
– verifyReceiptWithTransaction:
验证交易入口
- (void)verifyReceiptWithTransaction:(SKPaymentTransaction *)transaction
Parameters
transaction |
交易数据 |
---|
Declared In
LMPaymentCore.m