myaccount()


Usage

myaccount() can be integrated within Cleeng login or part of SSO integration. You can read more about My Account module itself in My Account Module documentation..
Note: publisherId and customUrl are required alternately. If you provide one, the other parameter is not required.

Parameters:

Name Type Description
displayType string Options available: popup / inline / overlay
containerId string Optional parameter (used for in-line checkout). ID of dom element in which checkout will be placed
publisherId string (Parameter is not required when customUrl is provided.) Your publisher ID. You can find it here: api-keys section
customUrl string ( Parameter is not required when publisherId is provided) URL generated by generateMyAccountUrl() method. Notice: Link expires after 30 days or after first use.
completed function Gives detailed information about purchase made

Additional example

Example 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>

Example overlay My-Account:

<script>
    CleengApi.myAccount({
        displayType: "overlay",
        containerId: "my-account-container",
        customUrl: "CustomURL",
        completed: function (result) {
            console.log(result);
        }
    });
</script>


- 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.