LMPaymentDelegate Protocol Reference

Conforms to NSObject
Declared in LMPaymentCore.h

– startRequestIAPProductInfo:productID:

开始请求商店的档位信息

- (void)startRequestIAPProductInfo:(PaymentAction)paymentAction productID:(NSString *)productID

Parameters

paymentAction

操作类型

productID

档位ID

Declared In

LMPaymentCore.h

– waitingForOtherPaymentAction:waitingAction:

有其他交易正在进行,等待其他交易结束

- (void)waitingForOtherPaymentAction:(PaymentAction)currentAction waitingAction:(PaymentAction)waitingAction

Parameters

currentAction

正在进行的交易类型

waitingAction

等待进行的交易类型

Declared In

LMPaymentCore.h

– paymentStart:productID:inAppLaunch:

充值开始

- (void)paymentStart:(PaymentAction)paymentAction productID:(NSString *)productID inAppLaunch:(BOOL)inAppLaunch

Parameters

paymentAction

操作类型

productID

档位ID

inAppLaunch

是否是app启动时

Declared In

LMPaymentCore.h

– orderIDCreated:paymentAction:error:orderSource:

订单成功创建

- (void)orderIDCreated:(KEWLPayResponse *)orderResponse paymentAction:(PaymentAction)paymentAction error:(KewlError *)error orderSource:(OrderSource)orderSource

Parameters

orderResponse

订单创建数据

paymentAction

操作类型

error

错误吗,error为nil表示创建成功

orderSource

订单来源

Declared In

LMPaymentCore.h

– startPaying:productID:orderID:

开始IAP付款

- (void)startPaying:(PaymentAction)paymentAction productID:(NSString *)productID orderID:(NSString *)orderID

Parameters

paymentAction

操作类型

productID

档位ID

orderID

订单ID

Declared In

LMPaymentCore.h

– endPaying:transaction:

结束IAP付款

- (void)endPaying:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transaction

Parameters

paymentAction

操作类型

transaction

交易数据

Declared In

LMPaymentCore.h

– startRequestReceipt:transaction:

开始向IAP服务器请求档位对应收据

- (void)startRequestReceipt:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transaction

Parameters

paymentAction

操作类型

transaction

交易数据

Declared In

LMPaymentCore.h

– endRefreshTransaction:transaction:

结算刷新收据请求

- (void)endRefreshTransaction:(PaymentAction)paymentAction transaction:(SKPaymentTransaction *)transaction

Parameters

paymentAction

操作类型

transaction

交易数据

Declared In

LMPaymentCore.h

– startVerifyReceipt:paymentModel:

开始验证收据

- (void)startVerifyReceipt:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModel

Parameters

paymentAction

操作类型

paymentModel

支付档位数据

Declared In

LMPaymentCore.h

– endVerifyReceipt:paymentModel:success:

结算验证收据

- (void)endVerifyReceipt:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModel success:(BOOL)success

Parameters

paymentAction

操作类型

paymentModel

支付档位数据

success

是否成功

Declared In

LMPaymentCore.h

– paymentEndWithReason:paymentAction:paymentModel:responseData:

交易结束

- (void)paymentEndWithReason:(LMPaymentReason)reason paymentAction:(PaymentAction)paymentAction paymentModel:(KEWLPaymentModel *)paymentModel responseData:(KEWLPaymentResponse *)responseData

Parameters

reason

结束原因 -1为默认值

paymentAction

操作类型

paymentModel

支付档位数据

responseData

结算数据结构

Declared In

LMPaymentCore.h