We have a need to create a transaction entirely programmatically without displaying any type of UI. To my knowledge this is possible through the use of templates. But as far as I can ascertain, templates needed to be created by hand in advance.
Is there a way to generate templates programmatically behind the scenes? By that I mean passing in a document and specifying coordinates / a location on a certain page to place the signature field and then being able to use that result to create a transaction and send it out without there ever needing to be human interaction?
Sure, template allows you to store document at OneSpan Sign side and quickly create transactions if changes are minimal.
Below sample code shows you how to create a template where leaves signers placeholders from scratch and send a new transaction on this template byreplacing signers with concrete recipients.
You can also do this directly without using a template, since you’re wanting to avoid the designer, the only reason to create a template would be to avoid loading the document each time.
You can also use our extraction capabilities, like text tags, position extraction, or document extraction to place your fields and signatures in a more automated fashion than figuring out the x/y coordinates.
No, unfortunately, from my knowledge, there are many design changes between v10 and v11 SDK.
And BTW, both classic sandbox and production environments have been migrated to version 11.18.2, so you probably want to update to the corresponding SDK.
If you want to update your SDK, I can help you with the code changes. Or you want to stick with v10 SDK, you can tell me your SDK version and I can create some sample code for you.