驗(yàn)證谷歌支付參數(shù)---refersh-token過(guò)期

1.在谷歌端 獲取到client_id 與client_secret

谷歌開(kāi)發(fā)者中心獲取
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

發(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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容