matheusdelecrode

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

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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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


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