JS SDK_插件
本人身份认证
GP.Identity('[本人身份认证代码]',{},function(resp) {
if(resp.success) {
alert(resp.orderId);
} else {
alert(resp.error);
}
});第三方支付
Last updated
GP.Identity('[本人身份认证代码]',{},function(resp) {
if(resp.success) {
alert(resp.orderId);
} else {
alert(resp.error);
}
});Last updated
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);
}
})
}