Skip to content

Commit 736b60f

Browse files
committed
DEVDOCS-10606 - adding codeDepot markers
1 parent 5b431a7 commit 736b60f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/eSignature/examples/collectPayment.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,28 @@ const createEnvelopeWithPayment = async (args) => {
1717
// args.accessToken
1818
// args.accountId
1919

20+
//ds-snippet-start:eSign14Step3
2021
let dsApiClient = new docusign.ApiClient();
2122
dsApiClient.setBasePath(args.basePath);
2223
dsApiClient.addDefaultHeader("Authorization", "Bearer " + args.accessToken);
2324
let envelopesApi = new docusign.EnvelopesApi(dsApiClient);
2425

2526
// Step 1. Make the envelope request body
2627
let envelope = makeEnvelope(args.envelopeArgs);
28+
//ds-snippet-end:eSign14Step3
2729

2830
// Step 2. call Envelopes::create API method
2931
// Exceptions will be caught by the calling function
32+
//ds-snippet-start:eSign14Step4
3033
let results = await envelopesApi.createEnvelope(args.accountId, {
3134
envelopeDefinition: envelope,
3235
});
36+
//ds-snippet-end:eSign14Step4
3337
let envelopeId = results.envelopeId;
3438
return { envelopeId: envelopeId };
3539
};
3640

41+
//ds-snippet-start:eSign14Step3
3742
/**
3843
* Creates envelope
3944
* <br>Document 1: An HTML document.
@@ -327,5 +332,6 @@ function makeEnvelope(args) {
327332

328333
return env;
329334
}
335+
//ds-snippet-end:eSign14Step3
330336

331337
module.exports = { createEnvelopeWithPayment };

0 commit comments

Comments
 (0)