MyTelecom showcases how the telecommunications industry could integrate with Docusign technologies using Node.js and React. All scenarios are for demonstration purposes only, meaning none of what you sign is binding in any way and envelopes in their entirety are deleted after 30 days. The following are the 3 different scenarios you can test out yourself:
-
Assumption of Liability. This will describe the process of changing ownership of the account. User is asked who they would like to change ownership of the account to. User is asked if they agree to transfer the ownership by signing the document using embedded signing with focused view. The envelope is sent through SMS to the receiver taking ownership of the account.
- SMS delivery
- Anchor positioning
- Data entry tabs
- Focused view
-
Purchase New Device. The user can purchase a new device from the telecom provider through remote signing. The user should be taken to a form where they input their name, email, and choose device and payment options. After submitting the form they should receive two envelopes with device and payment information.
- Remote Signing
- Scheduled Sending
- Anchor positioning
- Payments
-
Multi-Line Service Change Request for Business Accounts. This will describe the process of creating the service change request for multiple recipients. The user should be taken to a form where they choose the type of service change, set the number of customers receiving the changes, and information regarding each recipient.
- Remote Signing
- Data entry tabs
- Anchor positioning
- Bulk Sending
- A Docusign Developer account (email and password) on demo.docusign.net. If you don't already have a developer account, create a free account.
- A Docusign integration key (a client ID) that is configured to use JSON Web Token (JWT) Grant. You will need the integration key itself and its RSA key pair. To use this application, you must add your application's Redirect URI to your integration key. To run locally, add http://localhost:3000/index and http://localhost:3000 as your Redirect URI. This video demonstrates how to create an integration key (client ID) for a user application like this example.
- Payment gateway for your developer account.
- Enable SMS delivery for your account.
- Node.js v10+.
Before you can run this app on your local machine, you first must create a new integration with a Docusign developer account.
- First, get a local copy of this repo by either downloading it or cloning it onto your computer.
- If you don't already have one, create a free developer account.
- Log into your developer account, and navigate to Apps and Keys.
- Copy over User ID and API Account ID to your
env_example
file- Rename the file to
.env
- Rename the file to
- On the Apps and Keys page, select Add App and Integration Key.
- Name the integration and then copy over the Integration Key GUID to your
.env
file - On the integration page, navigate to Service Integration and select Generate RSA
- Copy the Private Key into your local repo in the
example_private.key
file.- Rename the file to
private.key
- Rename the file to
- Copy the Private Key into your local repo in the
- Add the following as redirect URIs for your app:
If you are planning on running the Purchase New Device scenario, you will need to configure a payment gateway for your developer account. For our example, we will use the Stripe gateway service.
- On the Payments page in your developer account, select ADD PAYMENT GATEWAY > Stripe.
- For development, you can skip the Stripe account application by using the Skip this form link at the top of the page. An enabled Stripe payment gateway is now associated with your Docusign developer account and is shown under Payment Gateway.
- Save the Gateway Account ID GUID to your .env file and update the other relevant settings under Payment configuration.
- USER_ID - A GUID unique to each user's Docusign Account, located on the Apps and Keys page.
- API_ACCOUNT_ID - A GUID unique to each user's Docusign Account, located on the Apps and Keys page.
- INTEGRATION_KEY - The integration key is the same as the client ID.
- DS_OAUTH_SERVER - The Docusign authentication server, used for JWT (for testing purposes, use
https://account-d.docusign.com
). - SESSION_SECRET - A unique string of your choice that is used to encrypt the session cookie.
- TARGET_ACCOUNT_ID - Target account ID. Use FALSE to indicate the user's default.
- PAYMENT_GATEWAY_ACCOUNT_ID.
- PAYMENT_GATEWAY_NAME.
- PAYMENT_GATEWAY_DISPLAY_NAME.
- REDIRECT_URI_HOME - Where the user will be redirected after providing consent for JWT.
- REDIRECT_URI - Where the user will be redirected after executing the scenarios.
- PORT_NUMBER - The port number for back end application.
After you have configured your Docusign settings and integration, you can begin installing the dependencies on your local machine.
- If you do not already have Node.js installed on your computer, install it from the Node.js website. If you are not sure whether you already have Node.js installed, open up a command-line window and enter:
npm version
If you get the current version or a message about a patch, you have Node.js installed. If not, you will need to install it. - Open up a command-line window and navigate to the client window with
cd client
and runnpm install
- Then, navigate into the server directory with
cd ../server
and runnpm install
- Navigate to project folder:
cd sample-app-mytelecom-nodejs
- Navigate to the client folder with
cd client
and runnpm run start
- Navigate to the server directory with
cd ../server
and runnpm run start
- Open a browser to http://localhost:3000
- Navigate to the application folder:
cd sample-app-mytelecom-nodejs
- Navigate to the server folder:
cd server
- Run
npm run dev
- Open a browser to http://localhost:3000