JS SDK_插件
除了GAMEPOT基本功能外,还支持多种外部模块库的联动功能等。 可支持模块
本人认证(Danal)
海外PG(exola)
国内PG(Danal)
区块链(正在准备)
本人身份认证
手机实名认证服务是指以用户名义使用手机通过认证程序确认用户的身份的功能。 (仅限韩国)
GP.Identity('[本人身份认证代码]',{},function(resp) {
if(resp.success) {
alert(resp.orderId);
} else {
alert(resp.error);
}
});
第三方支付
当使用外部PG如Exora或Danal时,显示结算窗口的功能。
function Payment(key) {
GP.Payment(key,
{
userId: "[USERID]",
productId : "[ITEMID]",
name: "[ITEMNAME]",
buyer_name: "[买方名称]",
buyer_email: "[买方EMAIL]",
},function(resp) {
if(resp.success) {
alert(resp.orderId);
} else {
alert(resp.error);
}
})
}
Attribute
Description
userId
GAMEPOT会员ID
productId
产品代码
name
道具名称
buyer_name
买方名称(option)
buyer_email
买方邮箱(option)
playerId
玩家ID(option)
serverId
服务器 ID(option)
userdata
用户数据(option)
Last updated