Unity SDK_第三方SDK关联

GAMEPOT Unity SDK支持与第三方SDK关联。

第三方SDK登录关联


如要通过第三方SDK关联使用登录功能,请参考表的内容在下列参数输入值后使用代码。

  • 参数及代码

▫︎ 由于不支持自动登录,因此需要每次调用。

参数名

是否为必填

类型

描述

userid

必填

String

用户唯一ID 值无法使用“:”(冒号)

String userid = "memberid of 3rd party sdk";

GamePot.loginByThirdPartySDK("userid");

第三方SDK支付关联


如要通过第三方SDK关联使用支付功能,请参考表的内容在下列代码输入参数值后使用代码。

  • 参数及代码

参数名

是否为必填

类型

描述

productid

必填

String

在仪表盘添加的道具ID

transactionid

必填

String

支付收据编号 (GPA-xxx-xxxx-xxxx)

store

必填

支付商店(google, apple, one, galaxy)

currency

选择

String

货币(KRW、USD)

price

选择

double

付费道具的金额

paymentid

选择

String

支付ID 一般与store_id相同

uniqueid

选择

String

开发商使用的唯一ID

String productId = "purchase_001";
String transactionId = "GPA-xxx-xxxx-xxxx";
String currency = "KRW";
double price = 1200;
String paymentId = "google";
String uniqueId = "developer unique id";

sendPurchaseByThirdPartySDK(string productId, string transactionId, string currency, double price, string store, string paymentId, string uniqueId);

Last updated