myaccount()


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

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>


Parameters:

Name Description
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

- required parameter

Back to Authorization & payments