tirfan

Signing through certificate

0 votes

Hello I am using document extraction approach using REST API and able to create the Transaction successfully. The problem I am having is that when I click to sign, it opens image capture screen like in the attached screenshot. I want to set from property in rest api so that when user click on the sign button, it prompt user to select the digital certificate to sign in transaction. Can you help with REST API?

 

{
  "roles": [
    {
      "id": "Signer1",
      "type": "SIGNER",
      "signers": [
        {
          "email": "[email protected]",
           "firstName": "Bill",
            "lastName": "Saven"
        }
      ],
      "name": "Signer1"
    }
  ],
  "documents": [
    {
      "name": "testDocumentExtraction",
      "extract": true
    }    
  ],
  "name": "Test Document Extraction",
  "type": "PACKAGE",
  "autoComplete": true,
  "status": "SENT"
}


Attachments
digital.PNG25.35 KB

Reply to: Signing through certificate

0 votes

Hi tirfan,

 

The OneSpan Personal Certificate Client (PCC) enables users to sign with a digital certificate that resides on a Smart Card or hardware token.

In order to leverage the feature, you'd first contact the support team and turn on the feature in your account.

Once you have the feature enabled, first of all, PCC only supports click-to-sign signatures, thus you'd change your PDF form property to 

[Signer1.Fullname1] (instead of [Signer1.Capture1])

In your API flow:

(1)you need to leave the transaction status in DRAFT first:

POST /api/packages

{
  "roles": [
    {
      "id": "Signer1",
      "type": "SIGNER",
      "signers": [
        {
          "email": "[email protected]",
           "firstName": "Bill",
            "lastName": "Saven"
        }
      ],
      "name": "Signer1"
    }
  ],
  "documents": [
    {
      "name": "testDocumentExtraction",
      "extract": true
    }    
  ],
  "name": "Test Document Extraction",
  "type": "PACKAGE",
  "autoComplete": true,
  "status": "DRAFT"
}

(2)Invoke an additional API to specify PCC authentication:
POST /api/packages/{packageId}/roles/Signer1/verification

{"typeId":"personalCertificateSigning"}

(3)Send the transaction

PUT /api/packages/{packageId}

{"status":"SENT"}

 

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