2016-08-30 2 views
0

기본적으로 나는 내 웹 사이트에서 Google-oauth을 사용하고 있지만 지금까지는 getBasicProfile()을 알고 있지만 내 웹 사이트에서는이 Google 사용자가 내 웹 사이트에서 Google 카드로 항목을 구입할 수 있기를 원한다. 그가 가진 특권의 종류?Google oauth에서 더 많은 권한을 얻는 방법?

여기 내 구글의 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> 

답변

0

구글은 "디지털 콘텐츠 용 Google 월렛"라는 제품 및 "실제 상품에 대한 즉시 구매"라는 다른 제품, both these products were deprecated했다.

Google에서 비즈니스 구매를 처리하는 데 사용할 수있는 유일한 옵션은 Android Pay이며 Android 앱에서만 모바일에서 사용할 수 있습니다.

Google은 귀하가 자바 스크립트를 통해 지불을 처리 할 수있는 제품을 제공하지 않습니다. 그 유스 케이스에 대해 나는 당신이 다른 해결책을 찾도록 제안한다. 인기있는 것들은 Stripe과 BrainTree입니다.

관련 문제