基本上我在我的网站上使用Google-oauth,但到目前为止我知道的是getBasicProfile(),但我需要更多,在我的网站上我希望这些谷歌用户能够用他们的Google卡从我的网站购买物品,以便获得那种特权,他有什么?
这是我的google oauth按钮创建代码:
<!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>发布于 2016-08-31 01:19:29
谷歌有一款名为“谷歌数字商品钱包”的产品,还有一款名为“实体商品即时购买”的产品,名为both these products were deprecated。
现在,使用谷歌为你的企业处理购买的唯一选择是使用Android Pay,它只在Android应用程序的移动设备上可用。
谷歌并没有提供一款可以让你通过javascript处理支付的产品。对于这种用例,我建议您寻找其他解决方案。一些流行的是条纹和BrainTree。
https://stackoverflow.com/questions/39221063
复制相似问题