# Introducing Billingx: Rewriting Android subscription billing and improving Play Store testing

DevFeed: [Introducing Billingx: Rewriting Android subscription billing and improving Play Store testing](<https://devfeed.tech/articles/introducing-billingx-30589.md>)

Original publisher: [Read original article](<https://ryanharter.com/blog/2018/06/introducing-billingx/>)

Published: 2018-06-17T23:05:10Z

Content type: tutorial

Language: en

Sources: [Blogs on Ryan Harter](<https://devfeed.tech/sources/blogs-on-ryan-harter.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Google Play](<https://devfeed.tech/topics/google-play.md>), [Library](<https://devfeed.tech/topics/library.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [billing](<https://devfeed.tech/tags/billing.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [library](<https://devfeed.tech/tags/library.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The article describes rewriting Pigment's Android subscription billing after users intermittently lost access to premium content. It discusses the Play Billing Library, limitations of Google's testing approaches, and Register, an alternative local testing service.

## Source excerpt

A few months ago I was tasked with rewriting the subscription code for Pigment, the coloring book app I work on at Pixite. Our users were suffering from a bug causing paying users to sometimes lose access to premium content, and the original implementation was somewhat hastily written, so I decided it made sense to invest the time to rewrite the billing code from scratch. Play Billing Library Google makes interacting with the Play Store's in app billing infrastructure pretty easy with the Play Billing Library. This is a small library that manages a service connection with Google Play and takes care of some of the binding and threading concerns for you.