myaccount()

You can read more about My Account module itself in My Account Module documentation..

1. Usage

Example of overlay code:

<script>
    CleengApi.myAccount({
       displayType: "overlay",
       publisherId: "your_publisher_id",
       completed: function (result) {
           console.log(result);
       }
    });
</script>

Run inline My Account inside of the #my-account-container:

<script>
    CleengApi.myAccount({
       displayType: "inline",
       containerId: "my-account-container",
       publisherId: "your_publisher_id",
       completed: function (result) {
           console.log(result);
       }
    });
</script>
<div id="my-account-container"></div>


2. Params

displayType: choose from popup / inline / overlay
containerId: optional for inline MyAccount, otherwise ignored. Put the id of dom element inside where you want to put your module.
publisherId: find it here: api-keys section
completed: as a result you receive detailed information about purchase made


Back to API Reference


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