Google Play 订阅接入与支付后台配置指南
February 13th, 2025

Google 支付与服务端验证

Google 开发者平台回调配置

订阅后台地址https://console.cloud.google.com/projectselector2/cloudpubsub/topic/list

新建主题
新建主题
创建订阅
创建订阅
通知账户设置
通知账户设置

参考网址https://developer.android.com/google/play/billing/getting-ready?authuser=1&hl=zh-cn#configure-rtdn

创收设置
创收设置

支付验证流程详细步骤

  1. 设置 OAuth 同意屏幕

常见问题与注意事项

  • 应用需处于封闭测试状态才能支付。

  • Firebase 创建的项目会自动同步到 Google API 后台。

  • 查询支付的项目与登录项目相互独立。

  • 获取 Code 时需使用 Google Play 开发者账号授权。

  • RefreshToken 需妥善保存,丢失后需重新创建 OAuth 客户端。

RefreshToken 过期原因

  • 同意屏幕发布状态为测试(有效期 7 天)。

  • RefreshToken 6 个月未使用。

  • 授权账号密码修改。

  • 授权超过 50 个刷新令牌,最早的令牌失效。

  • 取消授权。

👉 野卡 | 一分钟注册,轻松订阅海外线上服务

Subscribe to caoyuan
Receive the latest updates directly to your inbox.
Mint this entry as an NFT to add it to your collection.
Verification
This entry has been permanently stored onchain and signed by its creator.
More from caoyuan

Skeleton

Skeleton

Skeleton