Skip to content

Commit a8d7ade

Browse files
committed
DEVDOCS-13554 move Node eSign14 Step 3 mkrs
1 parent 2e5ea67 commit a8d7ade

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/eSignature/examples/collectPayment.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ const createEnvelopeWithPayment = async (args) => {
1616
// args.basePath
1717
// args.accessToken
1818
// args.accountId
19-
20-
//ds-snippet-start:eSign14Step3
19+
2120
let dsApiClient = new docusign.ApiClient();
2221
dsApiClient.setBasePath(args.basePath);
2322
dsApiClient.addDefaultHeader('Authorization', 'Bearer ' + args.accessToken);
2423
let envelopesApi = new docusign.EnvelopesApi(dsApiClient);
2524

26-
// Step 1. Make the envelope request body
25+
// Make the envelope request body
26+
//ds-snippet-start:eSign14Step3
2727
let envelope = makeEnvelope(args.envelopeArgs);
2828
//ds-snippet-end:eSign14Step3
2929

30-
// Step 2. call Envelopes::create API method
30+
// Call Envelopes::create API method
3131
// Exceptions will be caught by the calling function
3232
//ds-snippet-start:eSign14Step4
3333
let results = await envelopesApi.createEnvelope(args.accountId, {
@@ -38,7 +38,6 @@ const createEnvelopeWithPayment = async (args) => {
3838
return { envelopeId: envelopeId };
3939
};
4040

41-
//ds-snippet-start:eSign14Step3
4241
/**
4342
* Creates envelope
4443
* <br>Document 1: An HTML document.
@@ -49,6 +48,7 @@ const createEnvelopeWithPayment = async (args) => {
4948
* @returns {Envelope} An envelope definition
5049
* @private
5150
*/
51+
//ds-snippet-start:eSign14Step3
5252
function makeEnvelope(args) {
5353
// Data for this method
5454
// args.signerEmail

0 commit comments

Comments
 (0)