matheusdelecrode | Posts: 12

Capture Signature

0 votes

Hello how are you?

would it be possible via API to call this screen to capture the signature?

I have an application that needs to send the documents, is it possible to add the documents and call an "iframe" of the OneSpan page, to select the signature position?


Attachments
Approved Answer
Duo_Liang | Posts: 3776

Reply to: Capture Signature

0 votes

Hi Matheus,

 

Thanks for your post! This screen is so called Designer page in OneSpan Sign. You'd first retrieve a sender authentication token:
 

Java SDK

String senderAuthenticationToken = client.getAuthenticationTokensService().createSenderAuthenticationToken(packageId);

.NET SDK

string senderAuthenticationToken = client.AuthenticationTokenService.CreateSenderAuthenticationToken(packageId);

REST METHOD:

HTTP

Request POST /api/authenticationTokens/sender

HTTP Headers

Accept: application/json

Content-Type: application/json

Authorization: Basic api_key

Request Payload { "packageId": "e937fc75-3c3b-4506-b270-cc7e43f4cf78" }

Response Payload { "value": "MjY0MjQ4MzgtMTJlOS00MzhjLTgzODMtMzJmMGNiZTg3ODBl" }

 

Then build and embed the following URL:

{instance_url}/auth?senderAuthenticationToken={senderToken}&target={instance_url}/a/transaction/{packageId}/designer

 

Duo


matheusdelecrode | Posts: 12

Reply to: Capture Signature

0 votes

Hello Duo Liang, thanks for the reply!!

I made the request, but when I implemented it on my page, it only displayed "Succesfully created transaction"

I needed to open the signature page, inside my page


matheusdelecrode | Posts: 12

Reply to: Capture Signature

0 votes

Hello Duo Liang, thanks for the reply!!

I made the request, but when I implemented it on my page, it only displayed "Succesfully created transaction"

I needed to open the signature page, inside my page


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