com.xd.sdk.payment 0.0.11-alpha → 0.0.14-alpha
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.0.0.aar +0 -0
- package/Plugins/Android/libs/XDGBridgePayment_v7_7.0.0.aar.meta +32 -0
- package/Plugins/Android/libs/XDGPaymentUPPay_7.0.0.aar +0 -0
- package/Plugins/Android/libs/XDGPayment_7.0.0.aar +0 -0
- package/Plugins/iOS/XDPaymentSDK.framework/Headers/XDGPaymentVersion.h +1 -1
- package/Runtime/Internal/Mobile/PaymentFeaturesImpl.cs +5 -5
- package/package.json +2 -2
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: d80cd6109a9b149a1ae0750375bbdbbe
|
|
3
|
+
PluginImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
iconMap: {}
|
|
7
|
+
executionOrder: {}
|
|
8
|
+
defineConstraints: []
|
|
9
|
+
isPreloaded: 0
|
|
10
|
+
isOverridable: 1
|
|
11
|
+
isExplicitlyReferenced: 0
|
|
12
|
+
validateReferences: 1
|
|
13
|
+
platformData:
|
|
14
|
+
- first:
|
|
15
|
+
Android: Android
|
|
16
|
+
second:
|
|
17
|
+
enabled: 1
|
|
18
|
+
settings: {}
|
|
19
|
+
- first:
|
|
20
|
+
Any:
|
|
21
|
+
second:
|
|
22
|
+
enabled: 0
|
|
23
|
+
settings: {}
|
|
24
|
+
- first:
|
|
25
|
+
Editor: Editor
|
|
26
|
+
second:
|
|
27
|
+
enabled: 0
|
|
28
|
+
settings:
|
|
29
|
+
DefaultValueInitialized: true
|
|
30
|
+
userData:
|
|
31
|
+
assetBundleName:
|
|
32
|
+
assetBundleVariant:
|
|
Binary file
|
|
Binary file
|
|
@@ -40,7 +40,7 @@ namespace XD.SDK.Payment.Internal.Mobile
|
|
|
40
40
|
private PaymentFeaturesImpl()
|
|
41
41
|
{
|
|
42
42
|
EngineBridge.GetInstance()
|
|
43
|
-
.Register(BridgeConstants.Payment.
|
|
43
|
+
.Register(BridgeConstants.Payment.ServiceName, BridgeConstants.Payment.ServiceImpl);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
public void QueryWithProductIds(string[] productIds, Action<List<XDGProductInfo>, XDGError> callback)
|
|
@@ -51,7 +51,7 @@ namespace XD.SDK.Payment.Internal.Mobile
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
var command = new Command.Builder()
|
|
54
|
-
.Service(BridgeConstants.Payment.
|
|
54
|
+
.Service(BridgeConstants.Payment.BridgeName)
|
|
55
55
|
.Method("queryWithProductIds")
|
|
56
56
|
.Args(dic)
|
|
57
57
|
.Callback(true)
|
|
@@ -92,7 +92,7 @@ namespace XD.SDK.Payment.Internal.Mobile
|
|
|
92
92
|
public void PayWithParams(XDGPaymentParams paymentParams, Action<XDGOrderInfo, XDGError> callback)
|
|
93
93
|
{
|
|
94
94
|
var command = new Command.Builder()
|
|
95
|
-
.Service(BridgeConstants.Payment.
|
|
95
|
+
.Service(BridgeConstants.Payment.BridgeName)
|
|
96
96
|
.Method("payWithParams")
|
|
97
97
|
.Args(XDUtility.BridgeArgToDictionary("payWithParams", paymentParams))
|
|
98
98
|
.Callback(true)
|
|
@@ -118,7 +118,7 @@ namespace XD.SDK.Payment.Internal.Mobile
|
|
|
118
118
|
public void QueryPendingPurchases(Action<List<XDGPendingPurchase>, XDGError> callback)
|
|
119
119
|
{
|
|
120
120
|
var command = new Command.Builder()
|
|
121
|
-
.Service(BridgeConstants.Payment.
|
|
121
|
+
.Service(BridgeConstants.Payment.BridgeName)
|
|
122
122
|
.Method("queryPendingPurchases")
|
|
123
123
|
.Callback(true)
|
|
124
124
|
.OnceTime(true)
|
|
@@ -158,7 +158,7 @@ namespace XD.SDK.Payment.Internal.Mobile
|
|
|
158
158
|
public void HandlePendingPurchase(XDGPaymentParams paymentParams, Action<XDGOrderInfo, XDGError> callback)
|
|
159
159
|
{
|
|
160
160
|
var command = new Command.Builder()
|
|
161
|
-
.Service(BridgeConstants.Payment.
|
|
161
|
+
.Service(BridgeConstants.Payment.BridgeName)
|
|
162
162
|
.Method("handlePendingPurchase")
|
|
163
163
|
.Args(XDUtility.BridgeArgToDictionary("handlePendingPurchase", paymentParams))
|
|
164
164
|
.Callback(true)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.xd.sdk.payment",
|
|
3
3
|
"displayName": "XDGSDK Payment",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14-alpha",
|
|
5
5
|
"description": "XDGSDK",
|
|
6
6
|
"unity": "2019.3",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"com.xd.sdk.common": "0.0.
|
|
9
|
+
"com.xd.sdk.common": "0.0.14-alpha"
|
|
10
10
|
}
|
|
11
11
|
}
|