Apple payment
'Apple payment' is a feature for purchasing in-app products through the Apple App Store, verifying receipts, and then delivering the products to users. It supports single-item purchases of consumable products and subscription payments. Due to Apple App Store platform policy, multi-item purchases are not supported.
Check the payment flow
First, install and initialize the payment module, and then create a login session so that users can make payments. The Apple payment flow after that is as follows.
| Order | Step | Actor | Description |
|---|---|---|---|
| 1 | Set up the integration | App client | Get an authentication key from the Apple console, register it in the Hive Console, and then install the Apple payment plugin. |
| 2 | Get the product list | App client | Retrieve the product information registered in the Apple App Store and display it to users. |
| 3 | Purchase a product | App client | Open the Apple App Store payment window for the product the user selected and proceed with the payment. |
| 4 | Verify receipts | App client, app server | The app client sends the receipt to the app server, and the app server verifies the receipt with the Hive Axyl Server API. |
| 5 | Complete delivery | App server, app client | When receipt verification is complete, the app server delivers the product, and the app client records the delivery result and then finalizes the transaction. |