Fovea.Billing

is now IAPTIC, please go to the new and better version of our system.

Usage with Cordova

Using the receipt validator with the cordova purchase plugin is as simple as adding a single line in your code.

store.validator =
"https://reeceipt-validator.fovea.cc/v1/validate?appName=<APP_NAME>&apiKey=<PUBLIC_KEY>";

Your APP_NAME and PUBLIC_KEY can be retrieved from your account page. App Name and Public Key should appear on top of it.

Your account on billing.fovea.cc needs to be configured correctly for the platforms you intend to use (shared key on iOS, license key on Android, etc).

iOS Security Policy

Depending on how your app is configured, iOS security policy may prevent you to make requests to the validation service (DOM Exception 18). To fix it make sure https://reeceipt-validator.fovea.cc is listed in HTML file’s meta “Content-Security-Policy”, in the “default-src” list.

Here’s an example of what that looks like:

<meta http-equiv="Content-Security-Policy"
content="default-src 'self' https://reeceipt-validator.fovea.cc 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">