首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在google oauth中获得更多特权?

如何在google oauth中获得更多特权?
EN

Stack Overflow用户
提问于 2016-08-30 15:13:03
回答 1查看 15关注 0票数 0

基本上我在我的网站上使用Google-oauth,但到目前为止我知道的是getBasicProfile(),但我需要更多,在我的网站上我希望这些谷歌用户能够用他们的Google卡从我的网站购买物品,以便获得那种特权,他有什么?

这是我的google oauth按钮创建代码:

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<head>
<meta name="google-signin-client_id" content="921258372597-t5jrb0e9p4ivstp9mfi972lhcvfcuo59.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script>
function onSignIn(googleUser) {
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId());
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail());
}
</script>
</head>
<body>
<span><h1>google sign in Button</h1></span>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
</body>
</html>
EN

回答 1

Stack Overflow用户

发布于 2016-08-31 01:19:29

谷歌有一款名为“谷歌数字商品钱包”的产品,还有一款名为“实体商品即时购买”的产品,名为both these products were deprecated

现在,使用谷歌为你的企业处理购买的唯一选择是使用Android Pay,它只在Android应用程序的移动设备上可用。

谷歌并没有提供一款可以让你通过javascript处理支付的产品。对于这种用例,我建议您寻找其他解决方案。一些流行的是条纹和BrainTree。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39221063

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档