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.
- package/Plugins/Android/libs/{XDGBridgePayment_v7_7.1.0.aar → XDGBridgePayment_v7_7.2.0.aar} +0 -0
- package/Plugins/Android/libs/{XDGPaymentUPPay_7.1.0.aar → XDGPaymentUPPay_7.2.0.aar} +0 -0
- package/Plugins/Android/libs/XDGPayment_7.2.0.aar +0 -0
- package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGLogger+Payment.h +19 -0
- package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGLogger+Payment.h.meta +7 -0
- package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentVersion.h +3 -3
- package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDPaymentSDK.h +1 -0
- package/Plugins/iOS/XDPaymentSDK.framework/Info.plist +0 -0
- package/Plugins/iOS/XDPaymentSDK.framework/XDPaymentSDK +0 -0
- package/Runtime/Internal/Mobile/PaymentFeaturesImpl.cs +3 -3
- package/Runtime/Internal/Standalone/PayListener.cs +2 -2
- package/Runtime/Internal/Standalone/PaymentFeaturesImpl.cs +2 -2
- package/Runtime/Internal/XDGPaymentInternal.cs +1 -1
- package/package.json +2 -2
- package/Plugins/Android/libs/XDGPayment_7.1.0.aar +0 -0
- /package/Plugins/Android/libs/{XDGBridgePayment_v7_7.1.0.aar.meta → XDGBridgePayment_v7_7.2.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGPaymentUPPay_7.1.0.aar.meta → XDGPaymentUPPay_7.2.0.aar.meta} +0 -0
- /package/Plugins/Android/libs/{XDGPayment_7.1.0.aar.meta → XDGPayment_7.2.0.aar.meta} +0 -0
package/Plugins/Android/libs/{XDGBridgePayment_v7_7.1.0.aar → XDGBridgePayment_v7_7.2.0.aar}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|
{
|
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.
|
|
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.
|
|
9
|
+
"com.xd.sdk.common": "7.2.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
Binary file
|
|
File without changes
|
/package/Plugins/Android/libs/{XDGPaymentUPPay_7.1.0.aar.meta → XDGPaymentUPPay_7.2.0.aar.meta}
RENAMED
|
File without changes
|
|
File without changes
|