Enumerations
This section describes all public enumerations used throughout the Google Play Billing plugin.
Enumerations define fixed sets of values used to represent product types, purchase states, billing results, subscription recurrence modes, supported features, and in-app message results. They are available in both Blueprint and C++.
Each enumeration is documented with its possible values and a description of its purpose.
Products and Purchases
EGooglePlayBillingProductType
Defines the type of product used when querying product details, launching a purchase, or checking owned purchases.
| Value | Description |
|---|---|
| In-App Product | A one-time purchase product, such as a consumable or non-consumable item. |
| Subscription | A subscription product that may renew over time. |
EGooglePlayBillingPurchaseState
Represents the current state of a Google Play purchase.
This enumeration is returned in FGooglePlayBillingPurchase.
| Value | Description |
|---|---|
| Unspecified | The purchase state is unknown or was not specified. |
| Purchased | The purchase has been completed and paid for. |
| Pending | The purchase is waiting for payment confirmation. |
Billing Results
EGooglePlayBillingResponseCode
Represents the result of a Google Play Billing operation.
This enumeration is returned through failure callbacks used by initialization, product queries, purchase processing, ownership queries, acknowledgement, consumption, and other billing operations.
| Value | Description |
|---|---|
| OK | The billing operation completed successfully. |
| Service Unavailable | The billing service is currently unavailable. |
| Billing Unavailable | Google Play Billing is not available on the current device or account. |
| Item Unavailable | The requested product is not available for purchase. |
| Developer Error | The request contains invalid arguments or the application is not configured correctly. |
| Error | A general billing error occurred. |
| Item Already Owned | The user already owns the requested product. |
| Item Not Owned | The user does not own the requested product. |
| Network Error | A network error occurred during the billing operation. |
| Service Disconnected | The connection to the billing service was lost. |
| Feature Not Supported | The requested billing feature is not supported on the current device. |
| Service Timeout | The billing service request timed out. |
| Unknown | The billing response code is unknown or unsupported. |
Subscriptions
EGooglePlayBillingRecurrenceMode
Represents how a subscription pricing phase renews.
This enumeration is returned in subscription pricing phase data.
| Value | Description |
|---|---|
| Unknown | The recurrence mode is unknown or was not specified. |
| Infinite Recurring | The subscription renews indefinitely until it is canceled. |
| Finite Recurring | The subscription renews a limited number of times. |
| Non-Recurring | The pricing phase does not renew automatically. |
Billing Features
EGooglePlayBillingFeatureType
Defines a Google Play Billing feature that can be checked with IsGooglePlayBillingFeatureSupported.
| Value | Description |
|---|---|
| Subscriptions | Support for querying and purchasing subscription products. |
| Subscriptions Update | Support for updating or replacing an existing subscription. |
| Price Change Confirmation | Support for launching a price change confirmation flow. |
| In-App Messaging | Support for displaying Google Play Billing in-app messages. |
| Product Details | Support for querying product details through the modern Google Play Billing API. |
In-App Messages
EGooglePlayBillingInAppMessageResult
Represents the result of displaying a Google Play Billing in-app message.
This enumeration is returned through the success callback of ShowGooglePlayInAppMessages.
| Value | Description |
|---|---|
| Action Taken | The user completed an action from a Google Play Billing in-app message. |
| No Action Needed | No Google Play Billing in-app message action was required. |