This is a modified example, based in the original example from @Erel. The previous example only make purchases. This new example utilizes the Google Play Billing library v.7, changes the purchase to subscription and remove the ads. Due the requirements of the new library version, you need to...
www.b4x.com