forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -14,7 +14,7 @@ trait SignableData
|
||||
{
|
||||
// 1. Create a clone to represent the data-to-be-signed (without existing signatures)
|
||||
$clone = clone $this;
|
||||
|
||||
|
||||
// We explicitly set digestSignatures to null or empty for the signature calculation
|
||||
// assuming the bank expects the "business payload" only.
|
||||
// If the bank expects the field "digestSignatures": [] to be present in signed string,
|
||||
@@ -40,7 +40,7 @@ trait SignableData
|
||||
// Safest way is to reconstruct it.
|
||||
$current = $this->digestSignatures->toCollection()->all();
|
||||
$current[] = new DigestSignatureData($signature, 'cms');
|
||||
|
||||
|
||||
$this->digestSignatures = new DataCollection(DigestSignatureData::class, $current);
|
||||
|
||||
return $this;
|
||||
|
||||
Reference in New Issue
Block a user