验证谷歌支付参数---refersh-token过期

1.在谷歌端 获取到client_id 与client_secret

谷歌开发者中心获取
https://console.developers.google.com/apis/credentials/oauthclient/4072606927-mu2ubcphl9fnj85s4i617bogp5a72arh.apps.googleusercontent.com?project=pc-api-8251955333935696951-895

2. 获取谷歌登录的code

https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/androidpublisher&response_type=code&access_type=offline&redirect_uri=...&client_id=...

3. 获取 refresh_token

发送POST请求到https://accounts.google.com/o/oauth2/token
参数:
grant_type=authorization_code
code={获得的 code 值}
client_id={获得的 clientId}
client_secret={获得的 clientSecret}
redirect_uri={填写的 redirectURI}
access_type=offline
approval_prompt=force

4. 更多参见链接

https://alex-my.xyz/google-payment-verification

image.png

ada

你可能感兴趣的:(验证谷歌支付参数---refersh-token过期)