Version: 5.6
变现
用户属性

收据验证

以下是实现的详细信息:

对于 iOS

receipt 参数

  • 如果将此参数保留为 __null__,则该交易将显示在未验证收入 (Unverified Revenue) 中
  • 如果编写原生 iOS 插件
  • 如果使用 Unibill 插件
  • 如果使用 Prime31 插件
    • 将 StoreKitTransaction 的 “base64EncodedTransactionReceipt” 属性作为收据传入。

signature 参数

由于未使用此参数,因此传入 null

对于 Android

要验证 Android 变现,请在 Analytics Dashboard 的 Project Settings Form 中输入您的 Google 公有 API 密钥 (Google Public API Key)。

在 Google Play 中为应用内购 (IAP) 实施收据验证需要用到 Google 公有 API 密钥。您的 Google 公钥位于 Google Play Developer Console > All applications > Services & APIs > Your License Key For This Application 下。这是可选的,但如果是为 Android 平台开发并有 IAP,我们强烈建议使用它。

receipt 参数

  • 如果将此参数保留为 null,则该交易将显示为未验证收入
  • 如果编写原生 Android 插件
    • 传入订单的购买数据(这是 JSON 格式的字符串,映射到响应 Intent 中的 INAPP_PURCHASE_DATA 键)。
  • 如果使用 Unibill 插件
  • 如果使用 Prime31 插件
    • 传入 GooglePurchase “originalJson” 属性

signature 参数

  • 如果将此参数保留为 __null__,则该交易将显示为未验证收入
  • 如果编写原生 Android 插件
    • 传入签名(映射到响应 Intent 中的 INAPP_DATA_SIGNATURE 键)。
  • 如果使用 Unibill 插件
  • 如果使用 Prime31 插件
    • 传入 GooglePurchase “signature” 属性。
变现
用户属性