|product_id||The product ID string for the purchase.|
WARNING!: This function has been deprecated and is no
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.
if iap_status() == iap_status_available
purchased = iap_is_purchased(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.