I would like to detect my paid app from my beta app so that I can restrict access to people who have paid.

As far as I can tell, this is not possible using the official API.

People here have certainly been creating apps that somehow do things not enabled by the API. How?