Skip to content

Commit 2317b7e

Browse files
Change Signature support property secureCode to securityCode
1 parent 915e633 commit 2317b7e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Support/Signature.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ class Signature
1818
*
1919
* @var string
2020
*/
21-
protected $secureCode;
21+
protected $securityCode;
2222

2323
/**
2424
* Khởi tạo đối tượng Signature.
2525
*
26-
* @param string $secureCode
26+
* @param string $securityCode
2727
*/
28-
public function __construct(string $secureCode)
28+
public function __construct(string $securityCode)
2929
{
30-
$this->secureCode = $secureCode;
30+
$this->securityCode = $securityCode;
3131
}
3232

3333
/**
@@ -39,7 +39,7 @@ public function __construct(string $secureCode)
3939
public function generate(array $data): string
4040
{
4141
ksort($data);
42-
$data[] = $this->secureCode;
42+
$data[] = $this->securityCode;
4343
$dataSign = implode('|', $data);
4444

4545
return strtoupper(hash('sha256', $dataSign));

0 commit comments

Comments
 (0)