| | |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "WAIPay.h" |
| | | @class WAIapProduct,WAIapResult; |
| | | #import <WASdkIntf/WAIPay.h> |
| | | @class WAIapProduct,WAIapResult,WAChannelProduct; |
| | | |
| | | /*! |
| | | @discussion 查询商品库存协议 |
| | |
| | | /*! |
| | | @abstract 查询成功 |
| | | @param Inventory 是一个数组,保存着WAIapProduct类型的实例 |
| | | @param platform 支付平台 |
| | | */ |
| | | -(void)queryInventoryDidCompleteWithResult:(NSArray<WAIapProduct *>*)Inventory; |
| | | /*! |
| | | @abstract 查询失败 |
| | | @param error 错误 |
| | | @param platform 支付平台 |
| | | */ |
| | | -(void)queryInventoryDidFailWithError:(NSError*)error; |
| | | @end |
| | |
| | | @interface WAPayProxy : NSObject |
| | | /*! |
| | | @abstract 应用内支付初始化 |
| | | @param platform 支付平台 |
| | | */ |
| | | +(void)init4Iap; |
| | | /*! |
| | | @abstract 查询商品列表调用方法 |
| | | @param platform 支付平台 |
| | | @param delegate 委托 |
| | | */ |
| | | +(void)queryInventoryWithDelegate:(id<WAInventoryDelegate>)delegate; |
| | | |
| | | /*! |
| | | @abstract 查询渠道商品调用方法 |
| | | @param callBackBlock 回调 |
| | | */ |
| | | + (void)queryChannelProduct:(NSString *)channel |
| | | callBackBlock:(void(^)(NSArray <WAChannelProduct *>*channelProductsArray,NSError *error))callBackBlock; |
| | | |
| | | |
| | | /*! |
| | | @abstract 支付某个商品 |
| | | @param productId 商品id |
| | | @param platform 支付平台 |
| | | @param extInfo 扩展信息 |
| | | @param delegate 委托 |
| | | */ |
| | | +(void)payWithProductId:(NSString*)productId extInfo:(NSString*)extInfo delegate:(id<WAPaymentDelegate>)delegate; |
| | | /*! |
| | | @abstract 查询是否某个支付平台 |
| | | @param platform 支付平台 |
| | | @return bool 是否支持某个支付平台 |
| | | @abstract 查询是否支持支付 |
| | | @return bool 是否支持支付 |
| | | */ |
| | | +(BOOL)isPayServiceAvailableWithPlatform:(NSString *const)platform; |
| | | +(BOOL)isPayServiceAvailable; |
| | | |
| | | +(void)payLog:(NSString *)logInfo; |
| | | |
| | | |
| | | |
| | | @end |