| | |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "WAIPay.h" |
| | | @class WAIapProduct,WAIapResult; |
| | | @class WAIapProduct,WAIapResult,WAChannelProduct; |
| | | |
| | | /*! |
| | | @discussion 查询商品库存协议 |
| | |
| | | @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 |
| | |
| | | */ |
| | | +(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 |