<br__>3.1 logoUrl: (This is an optional parameter) This key contains a URL of your logo in any image file format. This Logo is shown on the Loading Page before the Signing Page appears.
<br__>3.2 callback: (This is a required parameter) This key contains a function which will be automatically executed after the completion of signing or in case of any error.
<br__>Ex. `var obj = {
logoUrl: "your-logo-url",
callback: function(response) {
console.log(resposne);
}
}`
4. To initialize signing, create a Leegality instance provided by leegality SDK by passing object created in step 3.
<br__>Ex. `var leegality = new Leegality(obj);`
5. Call method leegality.init() on user’s click/action.
<br__>Ex. `leegality.init();`
6. After calling the init() method, call method eSign with the signing URL.
<br__>Ex. `var signingUrl = “your-signing-url”;`
<br__>`leegality.esign(signingUrl);`
7. At any time, if you want to cancel signing process, call the method cancel() on instance of Leegality class.
<br__>Ex. `leegality.cancel();`
### Callback: ###
1. In case of successful completion of signing process, signing popup will be closed automatically and you will get a response object with key name 'message' - with corresponding 'success message' and key name ‘documentId’ - with corresponding Document ID.
2. In case of error in signing process, signing popup will be closed automatically and you will get a response object with key name 'error' and corresponding 'error message'.