I'm working on publishing my Chrome App to Google Play using the Chrome Apps for Mobile tools.
As Mihai Ionescu mentioned, there are two Google Wallet Merchant APIs: Google Wallet for Digital Goods API (used for Chrome Web Store apps) and Google Play In-app Billing API (used for Android apps). As far as I'm located in Belarus, Play API is supported for my country, but Digital Goods is not, though the Supported Locations table doesn't mention any API differences.
Mobile Chrome Apps Payment Plug-in ReadMe says:
This plugin allows you to sell digital and virtual goods within your app. It is built on the Android In-App Billing API and the iOS In-App Purchase API. It provides a JavaScript interface similar to the Chrome Apps Google Wallet for Digital Goods API, so that you can use the same API in both a desktop and mobile Chrome App.
Questions
- What exact API (Google Play or Digital Goods) is used for mobile Chrome Apps and can I really use one merchant API for both mobile and desktop versions?
- If different APIs are used, is there any way for a desktop Chrome app to check that a user has purchased the mobile version via Google Play?
For mobile, you will use Google Play In-app Billing API, as the item will ultimately end up on the Google Play Store. Regardless of the API, you will only need to create a single Google Wallet Merchant account to sell your goods, thus using a single Merchant Id.
Unfortunately, there is no way to verify a user's purchases within the app on different platforms (web vs mobile).