Ryan_Coleman

Notary Capture Signature/Signature Select

0 votes

Guys,

 

I see that we now have the ability to load up a notary capture to the system using a png so now I have two questions.

1. Is there a way to upload a png file to the system as the notary capture signature?

2. Is there a way to specify on package creation of which notary signature that we want to use?


Reply to: Notary Capture Signature/Signature Select

0 votes

Hi Ryan,

 

Thanks for your post!

For your two questions:
#1. There's an approval level flag "fromFile": true, which enables the upload image as signature. If you want your notary to upload image during signing, you don't pre-store an image to their sender profile, otherwise, the default one will be automatically populated.

#2. Turn off "fromFile" will revert to the hand-drawn scenario.

You can find more detailed information in this blog "Uploading an Image as a Signature".

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

0 votes

Hi Ryan,

 

Sorry for the confusion. You do have the option to upload a PNG file to sender's profile. However, in this way, the captured signature will always default to this one without letting you choose when signing (vs manually upload every time). Thus it's really an either-or choice.

 

Duo 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

0 votes

If we upload a png file to the sender, can we then specify which signature we want used on the approval level at the time of package creation?

approvals": [ { "fromFile": true, "role": "Role1", "fields": [ { "page": 0, "top": 100, "subtype": "CAPTURE", "height": 50, "left": 100, "width": 200, "type": "SIGNATURE" } ]"


Reply to:

0 votes

Let's say you have both the hand-drawn signature and image signature uploaded to sender profile.

Turning on "fromFile":true will populate the image signature

Turn off "fromFile":false will populate the hand-drawn signature

You can easily test it out by adding two capture signatures to the same document, with one turned on fromFile and one didn't.

 

Duo

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Notary Capture Signature/Signature Select

0 votes

Duo,

That will work. Only question that is left is how do we populate a png file for a sender using the api call? I didn't see that in the link you provided as it started from the GUI.


Reply to:

0 votes

Hi Ryan,

 

I don't think it's documented somewhere officially, but you can try with this API:
POST /api/account/senders/{senderId}/signature/image

Authorization: Basic/Bearer {api_key/token}

Content-Type: multipart/form-data

Form Data: "file": {image_binary}

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

1 votes

Hi Ryan,

 

If you were hitting 404 error, one of the possibilities is that there are duplicated "/api" in your URL, and below .NET code should work:

 

            string apiKey = "your_api_key";
            string url = "https://sandbox.esignlive.com/api";

            byte[] fileByteArray = File.ReadAllBytes("path_to_image");
            ByteArrayContent content = new ByteArrayContent(fileByteArray);

            content.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data");
            content.Headers.ContentDisposition.Name = "\"file\"";
            content.Headers.ContentDisposition.FileName = "\"signature.png\"";
            content.Headers.ContentType = new MediaTypeHeaderValue("image/png");

            MultipartFormDataContent form = new MultipartFormDataContent();
            form.Add(content, "\"file\"", "\"signature.png\"");


            HttpClient myClient = new HttpClient();
            myClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", apiKey);
            myClient.DefaultRequestHeaders.Add("Accept", "application/json");

            var response = myClient.PostAsync(new Uri(url) + "/account/senders/"+"your_sender_id"+"/signature/image", form).Result;

 

Duo
 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off