1.在谷歌端 獲取到client_id 與client_secret
2. 獲取谷歌登錄的code
3. 獲取 refresh_token
發(fā)送POST請(qǐng)求到https://accounts.google.com/o/oauth2/token
參數(shù):
grant_type=authorization_code
code={獲得的 code 值}
client_id={獲得的 clientId}
client_secret={獲得的 clientSecret}
redirect_uri={填寫(xiě)的 redirectURI}
access_type=offline
approval_prompt=force
4. 更多參見(jiàn)鏈接
https://alex-my.xyz/google-payment-verification

image.png
ada