Hi,
I advise to use an existing digital signature service.
We integrated https://yousign.fr/en services on http://www.inidev.net/. Yousign service used SMS to authenticate the signatory and the sign is done online.
Be free to contact us if you're interested about such integration.
Thanks.