@bates-solutions/clover API Reference - v1.3.0
    Preparing search index...

    Interface BuildAuthorizeUrlOptions

    Options for buildAuthorizeUrl

    interface BuildAuthorizeUrlOptions {
        clientId: string;
        environment?: CloverEnvironment;
        redirectUri?: string;
        state: string;
    }
    Index
    clientId: string

    App ID from the Clover Developer Dashboard

    environment?: CloverEnvironment

    Selects the authorize host: www.clover.com (production) or sandbox.dev.clover.com (sandbox).

    'sandbox'
    
    redirectUri?: string

    Where Clover sends the merchant back. Must be on the site URL configured for the app; when omitted Clover uses that site URL.

    state: string

    Unguessable CSRF token, returned unchanged on the redirect. Verify it in your callback before exchanging the code. You can also use it to carry which tenant started the flow.