Using the receipt validator with the cordova purchase plugin is as simple as adding a single line in your code.
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:
content="default-src 'self' https://reeceipt-validator.fovea.cc 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">