StorePurchase

The StorePurchase item is used to offer purchases through the platform's app store. More...

Import Statement: import VPlayPlugins.soomla 1.2
Inherits:

Item

Properties

Detailed Description

Purchases with StorePurchase type are mainly used for non-consumable, app-wide items and virtual currency packs. StorePurchases typically open the platform's app store and ask the user to confirm the purchase with a specific price.

For more information have a look at Store item's description.

Property Documentation

marketCurrencyCode : string

You can use this property to display your users localized information about your products, e.g. "EUR". If available, the information is fetched from the Google Play Store or iOS App Store when the plugin gets initially loaded.

This also allows to change the pricing or description text of a product without updating the app.

See also marketTitle, marketDescription, marketPriceAndCurrency, and marketPrice.


marketDescription : string

You can use this property to display your users localized information about your products, e.g. "Get extra power with the Turbo Boost add-on!". If available, the information is fetched from the Google Play Store or iOS App Store when the plugin gets initially loaded.

This also allows to change the pricing or description text of a product without updating the app.

See also marketTitle, marketPriceAndCurrency, marketCurrencyCode, and marketPrice.


marketPrice : real

You can use this property to display your users localized information about your products, e.g. 1.59. If available, the information is fetched from the Google Play Store or iOS App Store when the plugin gets initially loaded.

This also allows to change the pricing or description text of a product without updating the app.

See also marketTitle, marketDescription, marketCurrencyCode, and marketPriceAndCurrency.


marketPriceAndCurrency : string

You can use this property to display your users localized information about your products, e.g. "EUR 1,59". If available, the information is fetched from the Google Play Store or iOS App Store when the plugin gets initially loaded.

This also allows to change the pricing or description text of a product without updating the app.

See also marketTitle, marketDescription, marketCurrencyCode, and marketPrice.


marketTitle : string

You can use this property to display your users localized information about your products, e.g. "Turbo Boost". If available, the information is fetched from the Google Play Store or iOS App Store when the plugin gets initially loaded.

This also allows to change the pricing or description text of a product without updating the app.

See also marketPriceAndCurrency, marketDescription, marketCurrencyCode, and marketPrice.


price : real

A meta field which is only used if you want to export your store product list with Store::printStoreProductLists(). Prices must be defined in the platform specific app stores for this in-app purchase themselves.


productId : string

The productId is a unique identifier for this item which you have to define in the platform specific app stores for this in-app purchase. The property is mandatory.

On iOS the productId must be unique across all in-app purchases and uploaded apps. It's therefore best practice to prepend the productId with your game's package identifier (like net.vplay.demos.game). The productId may only contain lowercase letters (a-z), numbers (0-9), underlines (_) and dots (.).


Videos

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support