Skip to content

Commit a5cff22

Browse files
committed
2 parents 1d09f8b + 23c3aa8 commit a5cff22

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

src/Controllers/Examples/eSignature/EG011EmbeddedSending.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ public function createController(): void
3636
$this->checkDsToken();
3737
# 2. Call the worker method
3838
# More data validation would be a good idea here
39-
# Strip anything other than characters listed
39+
# Strip anything other than characters listed
40+
41+
$pdfDoc = $GLOBALS['DS_CONFIG']['doc_pdf'];
42+
$docxDoc = $GLOBALS['DS_CONFIG']['doc_docx'];
43+
4044
$envelopeIdAndRedirectUrl = EmbeddedSendingService::embeddedSending(
4145
$this->args,
4246
$this->clientService,
43-
$this::DEMO_DOCS_PATH
47+
$this::DEMO_DOCS_PATH,
48+
$docxDoc,
49+
$pdfDoc,
50+
51+
4452
);
4553

4654
if ($envelopeIdAndRedirectUrl) {

src/Services/Examples/eSignature/EmbeddedSendingService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ class EmbeddedSendingService
1818
* @return array ['redirect_url']
1919
*/
2020
# ***DS.snippet.0.start
21-
public static function embeddedSending(array $args, $clientService, $demoDocsPath): array
21+
public static function embeddedSending(array $args, $clientService, $demoDocsPath, $docxFile, $pdfFile): array
2222
{
2323
# 1. Create the envelope as a draft using eg002's worker
2424
# Exceptions will be caught by the calling function
2525
$args['envelope_args']['status'] = 'created';
26-
$demoDocsPath = SigningViaEmailService::signingViaEmail($args, $clientService, $demoDocsPath);
26+
$demoDocsPath = SigningViaEmailService::signingViaEmail($args, $clientService, $demoDocsPath, $docxFile, $pdfFile);
2727
$envelope_id = $demoDocsPath['envelope_id'];
2828

2929
# 2. Create sender view

templates/admin/eg007_retrieve_profile_by_user_id.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "base.html" %}
22
{% block content %}
33

4-
{% set formNumber = 0 %
4+
{% set formNumber = 0 %}
55
{% set userIdInputNumber = 0 %}
66

77
<h4>{{ code_example_text['ExampleName'] | raw }}</h4>

templates/esignature/eg032_pause_signature_workflow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{% set secondFormNumber = 1 %}
55
{% set nameNumber = 0 %}
66
{% set emailInputNumber = 1 %}
7-
{% set email2InputNumber = 1 %}
8-
{% set name2InputNumber = 0 %}
7+
{% set email2InputNumber = 0 %}
8+
{% set name2InputNumber = 1 %}
99

1010
<h4>{{ code_example_text['ExampleName'] | raw }}</h4>
1111

0 commit comments

Comments
 (0)