Preparing for in-app billing

When implementing in-app billing, there needs to be a selection of products or subscriptions available for the user to purchase.

Getting ready

Before we can develop and implement in-app billing, we will require two Google accounts. One will be the merchant account, which will publish the app to the Play Store and provide the products. The other will be used for development and testing of purchases.

Note

Two accounts are required for testing because Google does not allow purchases to be made from the merchant account.

The merchant account should be registered as a Google developer (http://play.google.com/apps/publish) and linked to Google Wallet (http://www.google.com/wallet/merchants.html). The other account only needs ...

Get Xamarin Mobile Development for Android Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.