This page provides data to work with the Wallkit Paywall system and build an integration that can

handle complex paywall flows, popups, firebase authentication, and analytics.

Usage

1. Add the <script src="./wallkit-integration-library.js"></script> to your html body.

2. Init the library with constructor new WallkitIntegration(options).

3. Enjoy

Options

const options = {
    public_key: 'xxxx-xxxx-xxxx-xxxx',
    mode: 'prod',
    version: 'v1',
    auth: { // default false
        firebase: { // default true
            config: { // wallkit net config default
                apiKey: "xxxx",
                authDomain: "app.firebaseapp.com",
                databaseURL: "<https://app.firebaseio.com>",
                projectId: "project-id",
                storageBucket: "app.appspot.com",
                messagingSenderId: "xxxx",
                appId: "x:xxxx:xxx:xxxx",
                measurementId: "x-xxxxxxx"
            },
            providers: ['email', 'google'], // ['email', 'google] - default
            tosURL: '<https://website.com>', // <https://wallkit.net> - default
            privacyPolicyURL: '<https://website.com>', // <https://walkit.net> - default
        },
        modal: {
            title: 'Authorisation', // Sign In - default
        },
    },
    analytics: {
        parseUTM: true // true - default
    }
}

Methods