Back

CreatePlayStore

Hello World
Content:
- Methods

Creates a new PlayStore instance for retreiving informations or purchasing items.

pls = app.CreatePlayStore( ) → app object: PlayStore

Notes: If your email address is listed in the 'licence testing' section of the developer console settings page, then using this sample will result in a test subscription with an order id of '1234' which recurs daily (even if configured for monthly) and you will not be charged.
Subscriptions can be cancelled in the Google Play App found on your device (they will stay active for the remains of the period that has been purchased).

Methods

The following methods are available on the PlayStore object:

GetType() → String: “PlayStore”
String
String: IAP or SUBS
String: “SUBS”
Object: { COMMAND }
List: of objects: [{ skuDetailsToken, productId, type, price, price_amount_micros, price_currency_code, title, description }]
function( items )
function( prodId, orderId, purchToken, devToken, packageName )
pls.Batch
Batch method calls to be able to set all object's properties at once.
Note that you need to specify each parameter (use “” or null to leave some out)
Inherited methods can be called by appending an underscore to the function name (ie. txt.Batch({ SetBackColor_: [“red”] })
pls.GetBillingInfo
Get product info of paid items from Google Play.
pls.GetPurchases
Get product info of purchased items from Google Play.
pls.GetType
Returns the control class name.
pls.Purchase
Purchase an item on Google Play.