com.xd.sdk.payment 6.29.1 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/Plugins/Android/libs/XDGBridgePayment_v7_7.0.0.aar +0 -0
  2. package/Plugins/Android/libs/{XDGPayment_6.29.1.aar.meta → XDGBridgePayment_v7_7.0.0.aar.meta} +2 -2
  3. package/Plugins/Android/libs/XDGPaymentUPPay_7.0.0.aar +0 -0
  4. package/Plugins/Android/libs/XDGPaymentUPPay_7.0.0.aar.meta +3 -0
  5. package/Plugins/Android/libs/XDGPayment_7.0.0.aar +0 -0
  6. package/Plugins/Android/libs/XDGPayment_7.0.0.aar.meta +3 -0
  7. package/Plugins/Android/libs.meta +1 -1
  8. package/Plugins/Android.meta +1 -1
  9. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGOrderInfo.h +7 -9
  10. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGOrderInfo.h.meta +1 -1
  11. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPayment.h +8 -60
  12. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPayment.h.meta +1 -1
  13. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentDefines.h +49 -0
  14. package/{README.md.meta → Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentDefines.h.meta} +2 -2
  15. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentParams.h +20 -2
  16. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentParams.h.meta +1 -1
  17. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentService.h.meta +1 -1
  18. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentVersion.h +3 -3
  19. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentVersion.h.meta +1 -1
  20. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPendingPurchase.h +18 -0
  21. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPendingPurchase.h.meta +7 -0
  22. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGProductInfo.h +28 -3
  23. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGProductInfo.h.meta +1 -1
  24. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGTransactionInfo.h +7 -3
  25. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGTransactionInfo.h.meta +1 -1
  26. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDPaymentSDK.h +1 -1
  27. package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDPaymentSDK.h.meta +1 -1
  28. package/Plugins/iOS/XDPaymentSDK.framework/Headers.meta +1 -1
  29. package/Plugins/iOS/XDPaymentSDK.framework/Info.plist +0 -0
  30. package/Plugins/iOS/XDPaymentSDK.framework/Info.plist.meta +1 -1
  31. package/Plugins/iOS/XDPaymentSDK.framework/Modules/module.modulemap.meta +1 -1
  32. package/Plugins/iOS/XDPaymentSDK.framework/Modules.meta +1 -1
  33. package/Plugins/iOS/XDPaymentSDK.framework/XDPaymentSDK +0 -0
  34. package/Plugins/iOS/XDPaymentSDK.framework/XDPaymentSDK.meta +1 -1
  35. package/Plugins/iOS/XDPaymentSDK.framework.meta +3 -3
  36. package/Plugins/iOS.meta +1 -1
  37. package/Plugins.meta +1 -1
  38. package/{Mobile → Runtime/Internal/Mobile}/PaymentConstants.cs +5 -9
  39. package/{Mobile → Runtime/Internal/Mobile}/PaymentConstants.cs.meta +1 -1
  40. package/Runtime/Internal/Mobile/PaymentFeaturesImpl.cs +185 -0
  41. package/{Mobile/Editor/XDPaymentMobileProcessBuild.cs.meta → Runtime/Internal/Mobile/PaymentFeaturesImpl.cs.meta} +1 -1
  42. package/Runtime/Internal/Mobile/XDGRestoredPurchasesWrapper.cs +23 -0
  43. package/{Mobile → Runtime/Internal/Mobile}/XDGRestoredPurchasesWrapper.cs.meta +1 -1
  44. package/{Mobile.meta → Runtime/Internal/Mobile.meta} +1 -1
  45. package/Runtime/Internal/Standalone/AliyunTrack.Payment.cs +156 -0
  46. package/{Editor/XDGAndroidPaymentProcessor.cs.meta → Runtime/Internal/Standalone/AliyunTrack.Payment.cs.meta} +1 -1
  47. package/Runtime/Internal/Standalone/Bean/PayCheckResponse.cs +19 -0
  48. package/{Editor/XDPaymentProcessBuild.cs.meta → Runtime/Internal/Standalone/Bean/PayCheckResponse.cs.meta} +1 -1
  49. package/Runtime/Internal/Standalone/Bean/PayInfo.cs +31 -0
  50. package/Runtime/Internal/Standalone/Bean/PayInfo.cs.meta +11 -0
  51. package/Runtime/Internal/Standalone/Bean/QueryProductsResponse.cs +46 -0
  52. package/Runtime/Internal/Standalone/Bean/QueryProductsResponse.cs.meta +11 -0
  53. package/Runtime/Internal/Standalone/Bean/XDGRefundResultWrapper.cs +19 -0
  54. package/Runtime/{XDGRefundResultWrapper.cs.meta → Internal/Standalone/Bean/XDGRefundResultWrapper.cs.meta} +1 -1
  55. package/{Editor/XD.SDK.Payment.Editor.asmdef.meta → Runtime/Internal/Standalone/Bean.meta} +3 -2
  56. package/Runtime/Internal/Standalone/PayListener.cs +83 -0
  57. package/Runtime/Internal/Standalone/PayListener.cs.meta +11 -0
  58. package/Runtime/Internal/Standalone/PayModule.cs +261 -0
  59. package/Runtime/Internal/Standalone/PayModule.cs.meta +11 -0
  60. package/Runtime/Internal/Standalone/PaymentAlert.cs +112 -0
  61. package/Runtime/Internal/Standalone/PaymentAlert.cs.meta +11 -0
  62. package/Runtime/Internal/Standalone/PaymentFeaturesImpl.cs +239 -0
  63. package/Runtime/Internal/Standalone/PaymentFeaturesImpl.cs.meta +11 -0
  64. package/{Mobile/Editor.meta → Runtime/Internal/Standalone.meta} +1 -1
  65. package/Runtime/Internal/XDGPaymentInternal.cs +46 -0
  66. package/Runtime/Internal/XDGPaymentInternal.cs.meta +11 -0
  67. package/Runtime/{XDGRefundDetails.cs → Internal/XDGRefundDetails.cs} +3 -5
  68. package/Runtime/{XDGRefundDetails.cs.meta → Internal/XDGRefundDetails.cs.meta} +1 -1
  69. package/Runtime/{XDGRefundResultWrapper.cs → Internal/XDGRefundResultWrapper.cs} +1 -1
  70. package/Runtime/Internal/XDGRefundResultWrapper.cs.meta +11 -0
  71. package/{Editor.meta → Runtime/Internal.meta} +1 -1
  72. package/Runtime/Public/XDGPayment.Deprecated.cs +231 -0
  73. package/Runtime/Public/XDGPayment.Deprecated.cs.meta +11 -0
  74. package/Runtime/Public/XDGPayment.cs +97 -0
  75. package/Runtime/{XDGPayment.cs.meta → Public/XDGPayment.cs.meta} +1 -1
  76. package/Runtime/Public/XDGPaymentEventHandler.cs +34 -0
  77. package/Runtime/Public/XDGPaymentEventHandler.cs.meta +3 -0
  78. package/Runtime/Public.meta +8 -0
  79. package/Runtime/XD.SDK.Payment.asmdef +5 -2
  80. package/Runtime/XD.SDK.Payment.asmdef.meta +1 -1
  81. package/Runtime.meta +1 -1
  82. package/package.json +5 -5
  83. package/package.json.meta +2 -2
  84. package/Editor/XD.SDK.Payment.Editor.asmdef +0 -19
  85. package/Editor/XDGAndroidPaymentProcessor.cs +0 -44
  86. package/Editor/XDPaymentProcessBuild.cs +0 -18
  87. package/Mobile/Editor/XD.SDK.Payment.Mobile.Editor.asmdef +0 -20
  88. package/Mobile/Editor/XD.SDK.Payment.Mobile.Editor.asmdef.meta +0 -7
  89. package/Mobile/Editor/XDPaymentMobileProcessBuild.cs +0 -20
  90. package/Mobile/XD.SDK.Payment.Mobile.asmdef +0 -22
  91. package/Mobile/XD.SDK.Payment.Mobile.asmdef.meta +0 -7
  92. package/Mobile/XDGDataBean.cs +0 -242
  93. package/Mobile/XDGDataBean.cs.meta +0 -11
  94. package/Mobile/XDGPaymentDetailsParam.cs +0 -127
  95. package/Mobile/XDGPaymentDetailsParam.cs.meta +0 -11
  96. package/Mobile/XDGPaymentMobile.cs +0 -146
  97. package/Mobile/XDGPaymentMobile.cs.meta +0 -11
  98. package/Mobile/XDGPaymentMobileImpl.cs +0 -389
  99. package/Mobile/XDGPaymentMobileImpl.cs.meta +0 -11
  100. package/Mobile/XDGRestoredPurchasesWrapper.cs +0 -42
  101. package/Plugins/Android/libs/XDGPayment_6.29.1.aar +0 -0
  102. package/README.md +0 -0
  103. package/Runtime/IXDGPayment.cs +0 -41
  104. package/Runtime/IXDGPayment.cs.meta +0 -11
  105. package/Runtime/WebPayResultType.cs +0 -8
  106. package/Runtime/WebPayResultType.cs.meta +0 -11
  107. package/Runtime/XDGPayType.cs +0 -9
  108. package/Runtime/XDGPayType.cs.meta +0 -11
  109. package/Runtime/XDGPayment.cs +0 -110
  110. package/Runtime/XDGPaymentParams.cs +0 -82
  111. package/Runtime/XDGPaymentParams.cs.meta +0 -11
  112. package/Runtime/XDGSkuDetailInfo.cs +0 -270
  113. package/Runtime/XDGSkuDetailInfo.cs.meta +0 -11
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 21c8dd6c6e2c640ca87c2221712567e8
2
+ guid: d80cd6109a9b149a1ae0750375bbdbbe
3
3
  PluginImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2
@@ -7,7 +7,7 @@ PluginImporter:
7
7
  executionOrder: {}
8
8
  defineConstraints: []
9
9
  isPreloaded: 0
10
- isOverridable: 0
10
+ isOverridable: 1
11
11
  isExplicitlyReferenced: 0
12
12
  validateReferences: 1
13
13
  platformData:
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 8c17143d8ef7461190fe56b2bd500899
3
+ timeCreated: 1755682524
@@ -0,0 +1,3 @@
1
+ fileFormatVersion: 2
2
+ guid: 91896ca3061b408588674ae253c11b38
3
+ timeCreated: 1755682524
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 7040c7094b873433a961bae40b47a923
2
+ guid: 8f130c4e1ca34def8668df9b3bd045f4
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: ffe4b5946970e4f978596b86f0596523
2
+ guid: 9030895ebfad41a6b8e8205b1fa5cc20
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -2,20 +2,18 @@
2
2
 
3
3
  NS_ASSUME_NONNULL_BEGIN
4
4
 
5
- /** TDSGlobal 平台订单信息 */
5
+ /// 订单信息
6
6
  @interface XDGOrderInfo : NSObject
7
- /// 游戏侧订单号
8
- @property (nonatomic,copy,readonly) NSString *outTradeNo;
7
+ /// 游戏订单号
8
+ @property (nonatomic,copy,readonly) NSString *gameOrderId;
9
9
  /// 商品 ID
10
- @property (nonatomic,copy,readonly) NSString *productIdentifier;
11
- /// 角色所在服务器 ID
10
+ @property (nonatomic,copy,readonly) NSString *productId;
11
+ /// 服务器 ID
12
12
  @property (nonatomic,copy,readonly) NSString *serverId;
13
13
  /// 角色ID
14
14
  @property (nonatomic,copy,readonly) NSString *roleId;
15
- /// 当前订单所用货币
16
- @property (nonatomic,copy,readonly) NSString *currency;
17
- /// 当前订单价格
18
- @property (nonatomic,strong,readonly) NSDecimalNumber *price;
15
+ /// 透传参数
16
+ @property (nonatomic, copy, readonly) NSString *extra;
19
17
 
20
18
  + (XDGOrderInfo *)createOrderInfo:(NSDictionary *)orderInfo;
21
19
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 0a6e302400ec64fb5b0e5e6c58dc14a0
2
+ guid: 02aa63ee6fe74b69ace72b4f14e5dc63
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,44 +1,14 @@
1
1
 
2
2
  #import <Foundation/Foundation.h>
3
3
 
4
- @class XDGProductInfo;
4
+ #import <XDPaymentSDK/XDGPaymentDefines.h>
5
+ #import <XDPaymentSDK/XDGPaymentParams.h>
6
+ #import <XDPaymentSDK/XDGPendingPurchase.h>
5
7
 
6
- @class XDGOrderInfo;
7
-
8
- @class XDGPaymentParams;
9
-
10
- #import <XDPaymentSDK/XDGTransactionInfo.h>
8
+ #import <XDCommonSDK/NSError+XDG.h>
11
9
 
12
10
  NS_ASSUME_NONNULL_BEGIN
13
11
 
14
- typedef NS_ENUM(NSInteger,XDGRepayMentCode) {
15
- XDGRepayMentCodeOk = 0x00, // ok
16
- XDGRepayMentCodeError = 0xff, // error
17
- };
18
- /**
19
- Describes the call back to the query of products
20
- @param result the result contains info of the products
21
- @param error error, if any.
22
- */
23
- typedef void(^XDGQueryProductsCallback)(NSArray<XDGProductInfo *> *_Nullable result,NSError *_Nullable error);
24
-
25
- /**
26
- Describes the call back to the query of unfinished transactions
27
- @param result the result contains unfinished transactions
28
- */
29
- typedef void(^XDGQueryRestoreProductsCallback)(NSArray<XDGTransactionInfo *> *result);
30
-
31
- /**
32
- Describes the call back to the transaction
33
- @param orderInfo info of the transaction
34
- @param error error, if any.
35
- */
36
- typedef void(^XDGPaymentCallback)(XDGOrderInfo *_Nullable orderInfo,NSError *_Nullable error);
37
-
38
-
39
- typedef void(^XDGRePaymentCallback)(XDGRepayMentCode code,NSString * _Nullable msg,NSDictionary *_Nullable data);
40
-
41
-
42
12
  @interface XDGPayment : NSObject
43
13
 
44
14
  /// 查询商品价格,请等待回调之后再做下一次查询,否则可能造成数据错乱
@@ -51,36 +21,14 @@ typedef void(^XDGRePaymentCallback)(XDGRepayMentCode code,NSString * _Nullable m
51
21
  /// @param completionHandler 支付结果回调
52
22
  + (void)payWithParams:(XDGPaymentParams *)paymentParam completionHandler:(XDGPaymentCallback)completionHandler;
53
23
 
54
- /// 支付商品
55
- /// @param orderId 商品ID
56
- /// @param productId 商品ID
57
- /// @param roleId 角色ID
58
- /// @param serverId 服务器ID
59
- /// @param ext 支付额外信息EXT
60
- /// @param completionHandler 支付结果处理
61
- + (void)payWithOrderId:(NSString *)orderId
62
- productId:(NSString *)productId
63
- roleId:(NSString *)roleId
64
- serverId:(NSString *)serverId
65
- ext:(NSString *)ext
66
- completionHandler:(XDGPaymentCallback)completionHandler;
67
-
68
24
  /// 查询当前是否有未处理订单或者礼包码
69
25
  /// @param completionHandler 查询结果处理
70
- + (void)queryRestoredPurchases:(XDGQueryRestoreProductsCallback)completionHandler;
26
+ + (void)queryPendingPurchases:(XDGQueryPendingPurchasesCallback)completionHandler;
71
27
 
72
- /// 恢复一笔订单/礼包码
73
- /// @param restoreTransaction 需要回复的订单信息,queryRestoredProducts回调中返回
74
- /// @param orderId 商品ID
75
- /// @param roleId 角色ID
76
- /// @param serverId 服务器ID
77
- /// @param ext 支付EXT信息
28
+ /// 消费订单/礼包码
29
+ /// @param paymentParam 支付参数
78
30
  /// @param completionHandler 回调处理
79
- + (void)restorePurchase:(XDGTransactionInfo *)restoreTransaction
80
- orderId:(NSString *)orderId
81
- roleId:(NSString *)roleId
82
- serverId:(NSString *)serverId
83
- ext:(NSString *)ext
31
+ + (void)handlePendingPurchase:(XDGPaymentParams *)paymentParam
84
32
  completionHandler:(XDGPaymentCallback)completionHandler;
85
33
 
86
34
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: de11b94aca349419d97b1eac261fa471
2
+ guid: aecbd8e422bc4e24aa04d95a77c623eb
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -0,0 +1,49 @@
1
+ //
2
+ // XDGPaymentDefines.h
3
+ // XDPaymentSDK
4
+ //
5
+ // Created by Fattycat on 2025/3/28.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <XDPaymentSDK/XDGProductInfo.h>
10
+ #import <XDPaymentSDK/XDGOrderInfo.h>
11
+ #import <XDPaymentSDK/XDGPendingPurchase.h>
12
+
13
+ #import <XDCommonSDK/NSError+XDG.h>
14
+
15
+ NS_ASSUME_NONNULL_BEGIN
16
+
17
+ typedef NS_ENUM(NSInteger, XDGRepayMentCode) {
18
+ XDGRepayMentCodeOk = XDGErrorCodeSuccess, // ok
19
+ XDGRepayMentCodeError = XDGErrorCodeFailed, // error
20
+ };
21
+
22
+ /**
23
+ 商品查询回调
24
+ @param result 商品信息
25
+ @param error 错误信息
26
+ */
27
+ typedef void (^XDGQueryProductsCallback)(NSArray<XDGProductInfo *> *_Nullable result, NSError *_Nullable error);
28
+
29
+ /**
30
+ 支付回调
31
+ @param orderInfo 订单信息
32
+ @param error 错误信息
33
+ */
34
+ typedef void (^XDGPaymentCallback)(XDGOrderInfo *_Nullable orderInfo, NSError *_Nullable error);
35
+
36
+ /**
37
+ 未处理订单查询回调
38
+ @param result 未处理订单信息
39
+ */
40
+ typedef void (^XDGQueryPendingPurchasesCallback)(NSArray<XDGPendingPurchase *> *result);
41
+
42
+ /// 补款回调
43
+ typedef void (^XDGRePaymentCallback)(XDGRepayMentCode code, NSString *_Nullable msg, NSDictionary *_Nullable data);
44
+
45
+ @interface XDGPaymentDefines : NSObject
46
+
47
+ @end
48
+
49
+ NS_ASSUME_NONNULL_END
@@ -1,6 +1,6 @@
1
1
  fileFormatVersion: 2
2
- guid: 209e968e45fcd47c69bde9feec5e0a07
3
- TextScriptImporter:
2
+ guid: 16fd62a0a7e74bd9ae4af1504eaf43bb
3
+ DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
6
6
  assetBundleName:
@@ -11,14 +11,32 @@ NS_ASSUME_NONNULL_BEGIN
11
11
 
12
12
  @interface XDGPaymentParams : NSObject
13
13
 
14
+ /// 游戏订单 ID,可选
14
15
  @property(nonatomic, strong, nullable) NSString *gameOrderId;
16
+
17
+ /// 商品 ID,必填
15
18
  @property(nonatomic, strong) NSString *productId;
19
+
20
+ /// 角色 ID
16
21
  @property(nonatomic, strong, nullable) NSString *roleId;
22
+
23
+ /// 服务器 ID
17
24
  @property(nonatomic, strong, nullable) NSString *serverId;
18
- @property(nonatomic, strong, nullable) NSString *ext;
25
+
26
+ /// 透传参数
27
+ @property(nonatomic, strong, nullable) NSString *extra;
28
+
29
+ /// 商品数量,默认为1,可选 1-10,恢复订单时不可用
19
30
  @property(nonatomic, assign) NSInteger quantity;
20
31
 
21
- - (NSError *_Nullable)checkValid;
32
+ /// 需要恢复的订单 ID,只在恢复订单时使用,可选
33
+ @property(nonatomic, strong, nullable) NSString *pendingPurchaseToken;
34
+
35
+ + (XDGPaymentParams *_Nullable)createWithDictionary:(NSDictionary *)dict;
36
+
37
+ - (NSError * _Nullable)checkValid:(BOOL)isPendingPurchase;
38
+
39
+ - (NSDictionary *)toDictionary;
22
40
 
23
41
  @end
24
42
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 99b31cdab1e4b4b14b89b4dcd5003f5e
2
+ guid: 6b4c247d4d8a435dae17c345219fc0a1
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: f5eed740debc946778d5d509c185c571
2
+ guid: 868372ba49d64c42b6c7a40866ebbfa4
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -5,6 +5,6 @@
5
5
  // Created by Fattycat on 2023/4/14.
6
6
  //
7
7
 
8
- #define XDGPayment_VERSION @"6.29.0"
9
- #define XDSPayment_VERSION_CODE @"6029000"
10
- // HASH 702c456
8
+ #define XDGPayment_VERSION @"7.0.0"
9
+ #define XDSPayment_VERSION_CODE @"7000000"
10
+ // HASH 7e458e32
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 5a66214e2c0144f17a3c2055b12331de
2
+ guid: 95699cd0991e405ebfabb9329310ee4c
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -0,0 +1,18 @@
1
+
2
+ #import <Foundation/Foundation.h>
3
+
4
+ NS_ASSUME_NONNULL_BEGIN
5
+
6
+ @interface XDGPendingPurchase : NSObject
7
+
8
+ /// 交易 ID
9
+ @property (nonatomic, strong) NSString *pendingPurchaseToken;
10
+
11
+ /// 商品 ID
12
+ @property (nonatomic, strong) NSString *productId;
13
+
14
+ - (NSDictionary *)toDictionary;
15
+
16
+ @end
17
+
18
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: d15d8872bd114b46a01e312264952a16
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -4,17 +4,42 @@
4
4
  NS_ASSUME_NONNULL_BEGIN
5
5
 
6
6
  @interface XDGProductInfo : NSObject
7
- @property(nonatomic,strong,readonly) NSString *localizedDescription;
8
7
 
8
+ /// 商品 ID
9
+ @property (nonatomic, strong, readonly) NSString *productIdentifier;
10
+
11
+ /// 商品展示价格(包含本地化符号 & 价格)
12
+ @property (nonatomic, strong, readonly) NSString *displayPrice;
13
+
14
+ /// 本地化标题
9
15
  @property(nonatomic,strong,readonly) NSString *localizedTitle;
10
16
 
17
+ /// 本地化描述
18
+ @property (nonatomic, strong, readonly) NSString *localizedDescription;
19
+
20
+ /// 商品价格
21
+ /// 建议直接使用 displayPrice
11
22
  @property(nonatomic,strong,readonly) NSDecimalNumber *price;
12
23
 
24
+ /// 价格符号
25
+ /// 建议直接使用 displayPrice
26
+ @property (nonatomic, strong, readonly) NSString *currencySymbol;
27
+
28
+ /// 价格代码
29
+ /// 建议直接使用 displayPrice
30
+ @property (nonatomic, strong, readonly) NSString *currencyCode;
31
+
32
+ /// 价格本地化信息
33
+ /// 建议直接使用 displayPrice
13
34
  @property(nonatomic,strong,readonly) NSLocale *priceLocale;
14
35
 
15
- @property(nonatomic,strong,readonly) NSString *productIdentifier;
36
+ - (nonnull XDGProductInfo *)initWithProductId:(nonnull NSString *)productId
37
+ price:(nonnull NSDecimalNumber *)price
38
+ priceLocale:(nonnull NSLocale *)priceLocale
39
+ localizedTitle:(nonnull NSString *)localizedTitle
40
+ localizedDescription:(nonnull NSString *)localizedDescription;
16
41
 
17
- @property(nonatomic,strong,readonly) NSString *displayPrice;
42
+ - (NSDictionary *)toDictionary;
18
43
 
19
44
  @end
20
45
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 1bb57965c05be447c9e8ddb08a09c146
2
+ guid: 5f6c44f9c3e44b579243205c47bbc64b
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -4,10 +4,14 @@
4
4
  NS_ASSUME_NONNULL_BEGIN
5
5
 
6
6
  @interface XDGTransactionInfo : NSObject
7
- // The unique server-provided identifier
8
- @property (nonatomic,strong,readonly) NSString *transactionIdentifier;
9
7
 
10
- @property (nonatomic,strong,readonly) NSString *productIdentifier;
8
+ /// 交易 ID
9
+ @property (nonatomic, strong) NSString *transactionId;
10
+
11
+ /// 商品 ID
12
+ @property (nonatomic, strong) NSString *productIdentifier;
13
+
14
+ - (NSDictionary *)toDictionary;
11
15
 
12
16
  @end
13
17
 
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: ddc4fa5e2132c41af84c2de3bf4285f8
2
+ guid: 84a4f4801ef8445d86373578c30d9a1f
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -17,7 +17,7 @@ FOUNDATION_EXPORT const unsigned char XDPaymentSDKVersionString[];
17
17
 
18
18
  #import <XDPaymentSDK/XDGPayment.h>
19
19
  #import <XDPaymentSDK/XDGProductInfo.h>
20
- #import <XDPaymentSDK/XDGTransactionInfo.h>
20
+ #import <XDPaymentSDK/XDGPendingPurchase.h>
21
21
  #import <XDPaymentSDK/XDGOrderInfo.h>
22
22
  #import <XDPaymentSDK/XDGPaymentService.h>
23
23
  #import <XDPaymentSDK/XDGPaymentVersion.h>
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 5a7dd4428ac9d4aaba441ab7800eaf2d
2
+ guid: 1c22284443524667a04e2dcb9edf2f3a
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 1491b204ddf68442190d15d77f8ea1bb
2
+ guid: a010deb5886949a88351753c45978f1c
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 343cc7ec566ef4279afec3c7ad7400c8
2
+ guid: 1f53717552eb4b7fbd2610e0ce0fa349
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: b1c4b11139d0e478a9020c8f617019ea
2
+ guid: 5b84f42d927f4cfb9d47738519492304
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 8989c5f0c4138463e8fd956ad3675b2b
2
+ guid: a6b78f8f7fc04f48903a1295fc5f31bf
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 9cbbc27ecd0014d379296b97392a2f4d
2
+ guid: dde358aee99f44bb9c1ad933d2d06148
3
3
  DefaultImporter:
4
4
  externalObjects: {}
5
5
  userData:
@@ -1,6 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 9f60a694492a145c183edb575f87ad88
3
- folderAsset: yes
2
+ guid: 1c090750ca3b4befae689c38c0aa0c47
4
3
  PluginImporter:
5
4
  externalObjects: {}
6
5
  serializedVersion: 2
@@ -21,6 +20,7 @@ PluginImporter:
21
20
  Exclude Editor: 1
22
21
  Exclude Linux64: 1
23
22
  Exclude OSXUniversal: 1
23
+ Exclude WebGL: 1
24
24
  Exclude Win: 1
25
25
  Exclude Win64: 1
26
26
  Exclude iOS: 0
@@ -72,7 +72,7 @@ PluginImporter:
72
72
  second:
73
73
  enabled: 1
74
74
  settings:
75
- AddToEmbeddedBinaries: false
75
+ AddToEmbeddedBinaries: true
76
76
  CPU: AnyCPU
77
77
  CompileFlags:
78
78
  FrameworkDependencies:
package/Plugins/iOS.meta CHANGED
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 026724d2bfe7d43d597db1b01b5fb845
2
+ guid: 3723976a3c1f4c15a741031e5b8ed3d1
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
package/Plugins.meta CHANGED
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 44f60da4cd1904757931064b14592226
2
+ guid: 12061ffa64bc4618be0548b44b8d8bd3
3
3
  folderAsset: yes
4
4
  DefaultImporter:
5
5
  externalObjects: {}
@@ -1,4 +1,6 @@
1
- namespace XD.SDK.Payment
1
+ #if UNITY_ANDROID || UNITY_IOS
2
+
3
+ namespace XD.SDK.Payment.Internal.Mobile
2
4
  {
3
5
  public class PaymentConstants
4
6
  {
@@ -10,12 +12,6 @@ namespace XD.SDK.Payment
10
12
  public static int USER_CANCEL = 1;
11
13
  public static int PURCHASE_PROCESSING = 2;
12
14
  }
13
-
14
- internal static class PayTypeInternal
15
- {
16
- public const string ALIPAY = "Alipay";
17
- public const string WECHAT_PAY = "WeChatPay";
18
- public const string CLOUD_QUICK_PAY = "CloudQuickPay";
19
- }
20
15
  }
21
- }
16
+ }
17
+ #endif
@@ -1,5 +1,5 @@
1
1
  fileFormatVersion: 2
2
- guid: 1ab389c0b21841f288cf3a4c446ecf7a
2
+ guid: 868ad620f20a428ba42fbe2ba78970ed
3
3
  MonoImporter:
4
4
  externalObjects: {}
5
5
  serializedVersion: 2