Skip to content

Commit

Permalink
feat: add InlinePay game_ext params; support Intent Scheme for Inline…
Browse files Browse the repository at this point in the history
…Pay and WebPay
  • Loading branch information
RoongfLee committed Jan 20, 2022
1 parent 5de7583 commit 440d581
Show file tree
Hide file tree
Showing 23 changed files with 73 additions and 72 deletions.
Binary file removed Plugins/Android/libs/TDSGlobalAccount_1.4.0.aar
Binary file not shown.
Binary file added Plugins/Android/libs/TDSGlobalAccount_1.4.1.aar
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed Plugins/Android/libs/TDSGlobalArchitecture_1.4.0.aar
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed Plugins/Android/libs/TDSGlobalCore_1.4.0.aar
Binary file not shown.
Binary file added Plugins/Android/libs/TDSGlobalCore_1.4.1.aar
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed Plugins/Android/libs/TDSGlobalPay_1.4.0.aar
Binary file not shown.
32 changes: 0 additions & 32 deletions Plugins/Android/libs/TDSGlobalPay_1.4.0.aar.meta

This file was deleted.

Binary file added Plugins/Android/libs/TDSGlobalPay_1.4.1.aar
Binary file not shown.
32 changes: 32 additions & 0 deletions Plugins/Android/libs/TDSGlobalPay_1.4.1.aar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed Plugins/Android/libs/TDSGlobalShare_1.4.0.aar
Binary file not shown.
32 changes: 0 additions & 32 deletions Plugins/Android/libs/TDSGlobalShare_1.4.0.aar.meta

This file was deleted.

Binary file added Plugins/Android/libs/TDSGlobalShare_1.4.1.aar
Binary file not shown.
32 changes: 32 additions & 0 deletions Plugins/Android/libs/TDSGlobalShare_1.4.1.aar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Script/Runtime/ITDSGlobal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void PayWithProduct(string orderId, string productId, string roleId, string serv
void PayWithWeb(string serverId, string roleId, Action<TDSGlobalError> callback);

void InlinePay(string orderId, string productId, string productName, string region, string serverid,
string roleId, Action<TDSGlobalInlinePayResult> callback);
string roleId, string ext, Action<TDSGlobalInlinePayResult> callback);

void QueryWithProductIds(string[] productIds, Action<List<TDSGlobalSkuDetail>> callback,
Action<TDSGlobalError> errorCallback);
Expand Down
3 changes: 2 additions & 1 deletion Script/Runtime/TDSGlobalImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void PayWithWeb(string serverId, string roleId, Action<TDSGlobalError> ca
}

public void InlinePay(string orderId, string productId, string productName, string region, string serverid,
string roleId, Action<TDSGlobalInlinePayResult> callback)
string roleId, string ext, Action<TDSGlobalInlinePayResult> callback)
{
var dic = new Dictionary<string, object>();
dic.Add("orderId", orderId);
Expand All @@ -249,6 +249,7 @@ public void InlinePay(string orderId, string productId, string productName, stri
dic.Add("region", region);
dic.Add("serverId", serverid);
dic.Add("roleId", roleId);
dic.Add("ext", ext);
Command command = new Command(TDSGlobalBridgeName.IAP_SERVICE_NAME, "inlinePay", true, dic);
EngineBridge.GetInstance().CallHandler(command, (result) =>
{
Expand Down
4 changes: 2 additions & 2 deletions Script/Runtime/TDSGlobalSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public static void PayWithWeb(string serverId, string roleId, Action<TDSGlobalEr
}

public static void InlinePay(string orderId, string productId, string productName, string region, string serverid,
string roleId, Action<TDSGlobalInlinePayResult> callback)
string roleId, string ext, Action<TDSGlobalInlinePayResult> callback)
{
TDSGlobalImpl.GetInstance().InlinePay(orderId, productId, productName, region, serverid, roleId, callback);
TDSGlobalImpl.GetInstance().InlinePay(orderId, productId, productName, region, serverid, roleId, ext, callback);
}

public static void QueryWithProductIds(string[] productIds, Action<List<TDSGlobalSkuDetail>> callback,
Expand Down

0 comments on commit 440d581

Please sign in to comment.