Google payment
'Google payment' is a feature for purchasing in-app products through Google Play, verifying receipts, and then delivering the products to users. It supports single-item purchases, multi-item purchases, and subscription payments.
Check the payment flow
First, install and initialize the payment module, and then create a login session so users can make payments. After that, the Google payment flow is as follows.
| Order | Step | Actor | Description |
|---|---|---|---|
| 1 | Set up the integration | App client | Get a license key from the Google Play Console, register it in the Hive Console, and install the Google payment plugin. |
| 2 | Get the product list | App client | Retrieve the product information registered in Google Play and display it to users. |
| 3 | Purchase a product | App client | Open the Google Play 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. |