We wanted to set the callback at package level so that we can setup custom query parameter (say, <callbackUrl?id=<Guid>) which will be unique for a package. We need this parameter (id) to be appended to the callback url so that we can uniquely identify the package in the response. We do not save the packageid in our DB. So, only way we can identify a package in callback is by the unique value of the parameter appended to callback url.
We are using the following code to generate the package. We are expecting PackageBuilder to provide us a way to set the callback url while creating the package.
Document document = new Document();
The callback notification feature is on an account level. That cannot be changed. However, what you can do is store the parameter in the package as attributes. Hence, when you receive the callback notification, you simply use the package id returned by esignlive to retrieve the package attribute and match it with your application. Here’s a guide on how to add package attributes: https://developer.esignlive.com/guides/feature-guides/package-attributes/