wendyguo

how to use attachment

0 votes

Hi,

 

I am not clean how to use attachment, could you please share an sample code? Also once there is attachment in a package, the sender have to accept this attachment, otherwise  the signing ceremony will not be completed?

 

Thanks

Wendy


Reply to: how to use attachment

0 votes

Hi Wendy,

 

Attachment request is binded to signer, so specify it when building the signer:


.withSigner(newSignerWithEmail("[email protected]")
.withFirstName("John")
    .withLastName("Doe")
    .withCustomId("Signer1")
    .withAttachmentRequirement(newAttachmentRequirementWithName("Driver's license")
        .withDescription("Please upload a copy of your driver’s license.")
        .isRequiredAttachment()
        .build()))

 

Adding a required attachment will force turning on the "review before completion", so you have to mark the package as complete. (it's not the "accept" action that completes the package)

eslClient.getPackageService().markComplete(packageId);         

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to:

0 votes

Does the sender need to call method acceptAttachment(PackageId packageId, Signer signer, String attachmentName) before call eslClient.getPackageService().markComplete(packageId)? 

let's say signer attached an attachmethment during signing ceremony, before call markComplete(packageId), sender download this attachment and find the attachment is health card instead of driver license, I guess sender should call rejectAttachment(PackageId packageId, Signer signer, String attachmentName, String senderComment), right? After the rejectAttachment is called, does the signer will receive a new activate email to sign the document again and reattach the attachment?

Thanks

Wendy


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