authentication()


You can read more about authentication itself in Modules overview.. For simple authentication usage we recommend html version, which doesn't require any coding from your side. Worth to mention that authentication is simply login/registration part of checkout.

Usage

Example of simple overlay checkout trigger.

CleengApi.authentication({
    displayType: "overlay",
    publisherId: 123456654,
    completed : function(result){}
});

Example of showing inline checkout inside #my-container element. Also it triggers option for customer to choose offer.

CleengApi.authentication({
    displayType: "inline",
    containerId: "my-container",
    publisherId: 321123321,
    locale: "fr_FR"
    completed : function(result){}
});

Parameters:

Name Type Description
displayTypestring choose from popup / inline / overlay
containerIdstring optional for in-line checkout, otherwise ignored. Put the id of dom element inside where you want to put your checkout.
publisherIdstring (optional - if offerId is not defined)
localestring optional, by default it is detected by Cleeng
completedfunction as a result you receive detailed information about purchase made

- required parameter


Back to Authorization & payments


We use cookies to ensure that we provide you the best service and website experience. Read our Cookie policy for more details.