Search

Integrating RightSignature with LearnDash

Listen to this article

RightSignatureRightSignature is a fast and reliable e-signature service that lets users sign PDF and other documents online. Signatures can be obtained digitally, with a pointing device like a mouse or on an iPhone or an iPad, both of which also support apps.

RightSignature is exceptionally handy in the sense that it let’s you digitally sign documents on the go, whether you’re travelling or need to sign the documents in person. It is compatible with most popular browsers and requires no downloads or plugins in order to function.

With RightSignature, it is also possible to achieve a certain degree of automation; it lets you automatically send documents at predefined points points in your workflow, so that you never have to manually request signatures from a long list of clients. It’s open sourced and the API easily integrates with your website or company systems.

RightSignature and LearnDash:

LearnDash, while intended to be used as an e-learning tool on WordPress, can also be modelled as a project tracking software all thanks to it’s powerful reporting capabilities. Under these circumstances, each project is set up as a lesson, and users can be enrolled as per requirements.

To integrate RightSignature with LearnDash, you can link the document that need to be signed with LearnDash Lessons and configure them to be sent to users on events such as successful enrollment etc. Integrating RightSignature with LearnDash allows you to obtain signatures in one of the two ways:

  1. Send an email to user with the link to the RightSignature site to sign the document.
  2. Allow users to sign documents on the client site by embedding a frame that allows digital signing.

RightSignature employs a callback functionality which allows us to take different actions based on the callback data. For example: while creating a RightSignature Document, we send xml data to RightSignature site and callback location. So once the document is created, you can easily capture the event of creation and can execute your code after that.

The Events for which a callback can be employed are:

  1. Document creation
  2. Document signed by a party
  3. Document signed by all the parties
  4. Document trashed

Different actions can be performed in different cases; a document signed by all the parties, can lead to the lesson, to which the document is linked, being marked as complete. Another example is to upload signed documents to DropBox.

Integration Process Flow:

  • When a user is enrolled for a Course, then our code fetches the list of all the lessons associated with the course.
  • For every lesson associated with RightSignature, the path to the relevant PDF document is fetched from the lesson’s meta information, stored using meta box, and will forward the document to RightSignature.
    [space]
    RightSignature-meta
  • Once the document is generated, we obtain a unique GUID, used for accessing the generated document.
  • A special table is created to store the details about GUID, User, Document status (send, signed, trash), Lesson ID.
  • When a user visits a particular Lesson, the log details are fetched from the table that we created and will request RightSignature to generate a token. This token, which is valid for one hour, will request for an iframe to sign the document on the page.
  • While generating the document, we also need to specify the callback URL on which RightSignature hits for different events, like when a document is trashed or signed. To capture the callback hit, a WordPress endpoint needs to be created.
  • So when a user lands on a lesson page, he will see an iframe to sign the document. Once the signature is done, a callback hit will be done by RightSignature with a status parameter “signed” (in the case when all parties have signed the document) and “recipient_signed” when a single party has signed.
    [space]

RightSignature-iframe

  • Once you obtain signatures from of the parties, the lesson can be marked as complete and the column values of our custom table is changed.
  • When a user is unenrolled from a Course, we can trash the documents which we have already generated for the lessons pertaining to the course.

 

To make the user sign exclusively using a client site, RightSignature should be configured to not include the signing URL in the email, but instead use the email as [email protected] in XML data sent to generate the document.

[space]

Doubts and queries? The comment section below is all yours. Stay tuned!

 

Tariq Kotwal

Tariq Kotwal

2 Responses

  1. Hi
    I have used right signature api for my application and load the document to the iframe.
    But after signing the document not able to redirect to call back url.
    Could you please suggest me solution with sample code will be really helpfull for me.
    I am usng C# language for consuming the api.

    thanks 🙂

  2. Hello. I see the signature can be requested after/during a lesson. However, we would like to incorporate a required signature after completion of the exams, at the very end of the course, to confirm completion of the course.

    Is this possible?

Leave a Reply

Your email address will not be published. Required fields are marked *

Get The Latest Updates

Subscribe to our Newsletter

A key to unlock the world of open-source. We promise not to spam your inbox.

Suggested Reads

How to Make Responsive Tables using CSS without Tag
Join our 55,000+ Subscribers

    The Wisdm Digest delivers all the latest news, and resources from the world of open-source businesses to your inbox.

    Suggested Reads