跳轉至

iOS

本頁說明如何在 Hive SDK iOS 中設定 Billing 功能。

Hive Console 設定

若要使用 Billing,必須先在 Hive Console 完成Billing 供應商設定,包含註冊金鑰值與串接市場。

新增 framework

請在專案目錄的 Podfile 中加入用於 App 內 Billing 功能的 framework

pod 'HiveIAPV4', $HIVE_SDK_VERSION # 用於 App 內購買、退款與再次購買的 Framework
pod 'HiveIAPV4Hive', $HIVE_SDK_VERSION # 用於 Hive Store 付款的 Framework

加入上述 framework 並儲存 Podfile 後,執行以下命令將 framework 安裝到專案中。

pod install