Fovea.Billing

The In-App-Purchase Backend Solution for Cordova Developers

Application Username

Fovea.Billing can identify users using your own identifiers. You can control how customers are identified, if you happen to use an internal login mechanism.

You can then retrieve your users’ purchase information from a reliable source instead of blindly trusting whatever the client app sends you.

This will also let you check the latest receipt of a given user from the user interface knowing his/her account login / username. Super helpful when handling support requests.

How?

plugin version >= 9

Starting with version 9 of the plugin, you should set store.applicationUsername whenever your user is logged in. The information will be passed along with all calls to the receipt validator.

store.applicationUsername = 'application_user_id';

Check the official documentation for details.

plugin version < 9

With older version of the plugin, you had to add it as an additional argument when making a purchase with store.order().

store.order('my_product_id', {
    applicationUsername: 'application_user_id'});

You should then start seeing users identified by your applicationUsername.

This method might miss some purchases, in particular if they were initiated outside the app. That’s why the API changed, so we recommend you use the most up-to-date version of the plugin.