UMSPPPayPluginSettings.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // UMSPluginSettings.h
  3. // UMSPosPay
  4. //
  5. // Created by chinaums on 15/10/19.
  6. // Copyright © 2015年 ChinaUMS. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. //1 是走apple 0是不走
  10. //#define SHOULD_CONTAIN_APPLE_PAY_CODES 0
  11. /*!
  12. @enum
  13. @abstract 交易环境
  14. @constant UMSP_PROD 生产环境
  15. @constant UMSP_TEST 测试环境
  16. */
  17. typedef NS_ENUM(NSInteger, UMSPluginEnvironment) {
  18. UMSP_PROD,
  19. UMSP_TEST
  20. };
  21. /**
  22. * 进入插件的方式
  23. */
  24. typedef NS_ENUM(NSInteger, UMSPluginEnterType) {
  25. ///默认方式
  26. UMSPluginEnterType_Default,
  27. ///C扫B方式
  28. UMSPluginEnterType_ScanCode
  29. };
  30. @interface UMSPPPayPluginSettings : NSObject
  31. + (UMSPPPayPluginSettings *)sharedInstance;
  32. /*!
  33. @property
  34. @abstract 设置交易环境,默认UMSP_PROD
  35. */
  36. @property (nonatomic, assign) UMSPluginEnvironment umspEnviroment;
  37. /**
  38. * 进入插件方式,默认UMSPluginEnterType_Default
  39. */
  40. @property (nonatomic, assign) UMSPluginEnterType umspEnterType;
  41. /*!
  42. @property
  43. @abstract 设置是否需要启动页,默认YES
  44. */
  45. @property (nonatomic, assign) BOOL umspSplash;
  46. @end