IAPPlatform.h 529 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // IAPPlatform.h
  3. // cocos2d_libs
  4. //
  5. // Created by ZhengSong on 2021/4/29.
  6. //
  7. #ifndef IAPPlatform_h
  8. #define IAPPlatform_h
  9. #include "IAPUtils.h"
  10. namespace iap {
  11. class IAPProductInfo;
  12. class IAPPlatform {
  13. public:
  14. static void loadIAPConfig(const std::string& iapConfigJsonString) {}
  15. static void purchase(const std::string& productId) {}
  16. static IAPProductInfo getProductInfo(const std::string& productId) {}
  17. static void setLogMode(bool isLog) {}
  18. };
  19. } // end namespace iap
  20. #endif /* IAPPlatform_h */