com.xd.sdk.payment 7.1.1 → 7.2.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.
@@ -0,0 +1,19 @@
1
+ //
2
+ // XDGLogger+Payment.h
3
+ // XDPaymentSDK
4
+ //
5
+ // Created by Fattycat on 2023/4/14.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+ #import <XDCommonSDK/XDGLogger.h>
10
+
11
+ NS_ASSUME_NONNULL_BEGIN
12
+
13
+ @interface XDGLogger (Payment)
14
+ + (void)paymentLog:(NSString *)content;
15
+
16
+ + (void)paymentLog:(NSString *)content secureContent:(NSString *_Nullable)secureContent;
17
+ @end
18
+
19
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ fileFormatVersion: 2
2
+ guid: 8437866c3a996476299356af8ee34b32
3
+ DefaultImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -5,6 +5,6 @@
5
5
  // Created by Fattycat on 2023/4/14.
6
6
  //
7
7
 
8
- #define XDGPayment_VERSION @"7.1.0"
9
- #define XDSPayment_VERSION_CODE @"7001000"
10
- // HASH 669fedcf
8
+ #define XDGPayment_VERSION @"7.2.0"
9
+ #define XDSPayment_VERSION_CODE @"7020000"
10
+ // HASH 8d15387e
@@ -22,3 +22,4 @@ FOUNDATION_EXPORT const unsigned char XDPaymentSDKVersionString[];
22
22
  #import <XDPaymentSDK/XDGPaymentService.h>
23
23
  #import <XDPaymentSDK/XDGPaymentVersion.h>
24
24
  #import <XDPaymentSDK/XDGPaymentParams.h>
25
+ #import <XDPaymentSDK/XDGLogger+Payment.h>
@@ -60,7 +60,7 @@ namespace XD.SDK.Payment.Internal.Mobile
60
60
 
61
61
  EngineBridge.GetInstance().CallHandler(command, result =>
62
62
  {
63
- XDGLogger.Debug("QueryWithProductIds 方法结果: " + result.ToJson());
63
+ XDGLogger.Debug("QueryWithProductIds 方法结果: " + result.ToJson(), XDGLoggerTag.Bridge);
64
64
  var xdgError = result.Parse2XDGError();
65
65
  if (xdgError != null)
66
66
  {
@@ -100,7 +100,7 @@ namespace XD.SDK.Payment.Internal.Mobile
100
100
  .CommandBuilder();
101
101
  EngineBridge.GetInstance().CallHandler(command, result =>
102
102
  {
103
- XDGLogger.Debug("PayWithParams 方法结果: " + result.ToJson());
103
+ XDGLogger.Debug("PayWithParams 方法结果: " + result.ToJson(), XDGLoggerTag.Bridge);
104
104
  var xdgError = result.Parse2XDGError();
105
105
  if (xdgError != null)
106
106
  {
@@ -125,7 +125,7 @@ namespace XD.SDK.Payment.Internal.Mobile
125
125
  .CommandBuilder();
126
126
  EngineBridge.GetInstance().CallHandler(command, result =>
127
127
  {
128
- XDGLogger.Debug("QueryPendingPurchases 方法结果: " + result.ToJson());
128
+ XDGLogger.Debug("QueryPendingPurchases 方法结果: " + result.ToJson(), XDGLoggerTag.Bridge);
129
129
 
130
130
  var xdgError = result.Parse2XDGError();
131
131
  if (xdgError != null)
@@ -20,7 +20,7 @@ namespace XD.SDK.Payment.Internal.Standalone
20
20
  string state = LocalServerUtils.GenerateRandomDataBase64url(32);
21
21
  string payRequest = $"{url}&redirect_uri={redirectUri}&state={state}";
22
22
 
23
- XDGLogger.Debug($"pay: {payRequest}");
23
+ XDGLogger.Debug($"pay: {payRequest}",XDGLoggerTag.Pay);
24
24
  _timeLeft = TIMEOUT;
25
25
  UIManager.ShowLoading(true);
26
26
  Application.OpenURL(Uri.EscapeUriString(payRequest));
@@ -47,7 +47,7 @@ namespace XD.SDK.Payment.Internal.Standalone
47
47
 
48
48
  server.Stop();
49
49
 
50
- XDGLogger.Debug($"pay callback: {context.Request.RawUrl}");
50
+ XDGLogger.Debug($"pay callback: {context.Request.RawUrl}",XDGLoggerTag.Pay);
51
51
 
52
52
  WindowUtils.BringToFront();
53
53
 
@@ -131,7 +131,7 @@ namespace XD.SDK.Payment.Internal.Standalone
131
131
  }
132
132
  catch (Exception e)
133
133
  {
134
- XDGLogger.Warn(e.Message);
134
+ XDGLogger.Warn(e.Message, XDGLoggerTag.Pay);
135
135
  return new List<XDGRefundDetails>();
136
136
  }
137
137
  }
@@ -184,7 +184,7 @@ namespace XD.SDK.Payment.Internal.Standalone
184
184
  paymentParams.Extra);
185
185
  // TODO 不需要二次 Encode
186
186
  // url = Uri.EscapeUriString(url);
187
- XDGLogger.Debug("支付 pay URL: " + url);
187
+ XDGLogger.Debug("支付 pay URL: " + url, XDGLoggerTag.Pay);
188
188
 
189
189
  if (ConfigModule.IsGlobal)
190
190
  {
@@ -18,7 +18,7 @@ namespace XD.SDK.Payment.Internal
18
18
  #endif
19
19
  if (PlatformWrapper == null)
20
20
  {
21
- XDGLogger.Error("unsupported platform: " + Application.platform);
21
+ XDGLogger.Error("unsupported platform: " + Application.platform, XDGLoggerTag.Pay);
22
22
  }
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.payment",
3
3
  "displayName": "XDGSDK Payment",
4
- "version": "7.1.1",
4
+ "version": "7.2.0",
5
5
  "description": "XDGSDK",
6
6
  "unity": "2019.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.sdk.common": "7.1.1"
9
+ "com.xd.sdk.common": "7.2.0"
10
10
  }
11
11
  }