LMPaymentManager Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | LMPaymentManager.h LMPaymentManager.m |
– payWithProductID:groupKey:completion:
发起充值
- (void)payWithProductID:(NSString *)productID groupKey:(NSString *)groupKey completion:(void ( ^ ) ( KEWLPaymentEndResponse *response , NSString *productID , BOOL result ))completionParameters
productID |
充值档位 |
|---|---|
groupKey |
档位列表接口返回的值,透传给服务端 |
completion |
充值结果回调 |
Declared In
LMPaymentManager.h
– refreshReceiptWithCompletion:
发起订单修复
- (void)refreshReceiptWithCompletion:(void ( ^ ) ( KEWLPaymentEndResponse *response , NSString *productID , BOOL result ))completionParameters
completion |
修复结果回调 |
|---|
Declared In
LMPaymentManager.h
– toastForUserNotMatch:
付款用户和当前用户不匹配提示
- (void)toastForUserNotMatch:(NSString *)purchasedUidParameters
purchasedUid |
付款用户UID |
|---|
Declared In
LMPaymentManager.m
– startRequestIAPProductInfo:productID:
开始请求商店的档位信息
- (void)startRequestIAPProductInfo:(PaymentAction)paymentAction productID:(NSString *)productIDParameters
paymentAction |
操作类型 |
|---|---|
productID |
档位ID |
Declared In
LMPaymentManager.m
– waitingForOtherPaymentAction:waitingAction:
有其他交易正在进行,等待其他交易结束
- (void)waitingForOtherPaymentAction:(PaymentAction)currentAction waitingAction:(PaymentAction)waitingActionParameters
currentAction |
正在进行的交易类型 |
|---|---|
waitingAction |
等待进行的交易类型 |
Declared In
LMPaymentManager.m
– paymentStart:productID:inAppLaunch:
充值开始
- (void)paymentStart:(PaymentAction)paymentAction productID:(NSString *)productID inAppLaunch:(BOOL)inAppLaunchParameters
paymentAction |
操作类型 |
|---|---|
productID |
档位ID |
inAppLaunch |
是否是app启动时 |
Declared In
LMPaymentManager.m
– orderIDCreated:paymentAction:error:orderSource:
订单成功创建
- (void)orderIDCreated:(KEWLPayResponse *)orderResponse paymentAction:(PaymentAction)paymentAction error:(KewlError *)error orderSource:(OrderSource)orderSourceParameters
orderResponse |
订单创建数据 |
|---|---|
paymentAction |
操作类型 |
error |
错误吗,error为nil表示创建成功 |
orderSource |
订单来源 |
Declared In
LMPaymentManager.m
– startRequestReceipt:transaction:
开始向IAP服务器请求档位对应收据
- (void)startRequestReceipt:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transactionParameters
paymentAction |
操作类型 |
|---|
Declared In
LMPaymentManager.m
– startPaying:productID:orderID:
开始IAP付款
- (void)startPaying:(PaymentAction)paymentAction productID:(NSString *)productID orderID:(NSString *)orderIDParameters
paymentAction |
操作类型 |
|---|---|
productID |
档位ID |
orderID |
订单ID |
Declared In
LMPaymentManager.m
– endPaying:transaction:
结束IAP付款
- (void)endPaying:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transactionParameters
paymentAction |
操作类型 |
|---|---|
transaction |
交易数据 |
Declared In
LMPaymentManager.m
– endRefreshTransaction:transaction:
结算刷新收据请求
- (void)endRefreshTransaction:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transactionParameters
paymentAction |
操作类型 |
|---|---|
transaction |
交易数据 |
Declared In
LMPaymentManager.m
– startVerifyReceipt:paymentModel:
开始验证收据
- (void)startVerifyReceipt:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModelParameters
paymentAction |
操作类型 |
|---|---|
paymentModel |
支付档位数据 |
Declared In
LMPaymentManager.m
– endVerifyReceipt:paymentModel:success:
结算验证收据
- (void)endVerifyReceipt:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModel success:(BOOL)successParameters
paymentAction |
操作类型 |
|---|---|
paymentModel |
支付档位数据 |
success |
是否成功 |
Declared In
LMPaymentManager.m
– paymentEndWithReason:paymentAction:paymentModel:responseData:
交易结束
- (void)paymentEndWithReason:(LMPaymentReason)reason paymentAction:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModel responseData:(KEWLPaymentResponse *)responseDataParameters
reason |
结束原因 -1为默认值 |
|---|---|
paymentAction |
操作类型 |
paymentModel |
支付档位数据 |
responseData |
结算数据结构 |
Declared In
LMPaymentManager.m