Skip to content

Commit

Permalink
fix recipientId generation
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoireHebert committed Feb 9, 2021
1 parent 3092096 commit 229e2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnvelopeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function addCarbonCopy(string $name, string $email): self
$carbonCopy = new Model\CarbonCopy();
$carbonCopy->setEmail($email);
$carbonCopy->setName($name);
$carbonCopy->setRecipientId((string) $this->docReference);
$carbonCopy->setRecipientId(sha1($email.$name));

$this->carbonCopies[] = $carbonCopy;

Expand Down Expand Up @@ -176,7 +176,7 @@ public function addSigner(string $name, string $email): self
$data = [
'email' => $email,
'name' => $name,
'recipient_id' => $this->docReference,
'recipient_id' => sha1($email.$name),
];

if (self::MODE_EMBEDDED === $this->getMode()) {
Expand Down

0 comments on commit 229e2cc

Please sign in to comment.