iap_is_purchased (deprecated)

Indicates whether or not a product has been purchased.

Syntax:

iap_is_purchased(product_id);


Argument Description
product_id The product ID string for the purchase.


Returns: Boolean


Description

WARNING!: This function has been deprecated and is no longer used.

With this function you can find out if the product you are checking has been bought previously or not, and has not yet been consumed. It will return true if the purchase exists and has not yet been consumed, or it will return false if the product does not exist, has not been purchased, or has already been consumed.

NOTE: This function is only valid if communication with the target store has been established.




Example:

if iap_status() == iap_status_available
   {
   var purchased;
   purchased = iap_is_purchased(p_id);
   if purchased
      {
      iap_consume(p_id)
      }
   }

The above the product ID to test and see if it the associated consumable product been bought or not, and if it has it calls the iap_consume() function.


Back: In App Purchases
Next: iap_activate
© Copyright YoYo Games Ltd. 2018 All Rights Reserved