-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathParameters.php
80 lines (73 loc) · 1.6 KB
/
Parameters.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* @link https://github.com/phpviet/omnipay-vnpay
*
* @copyright (c) PHP Viet
* @license [MIT](https://opensource.org/licenses/MIT)
*/
namespace Omnipay\VNPay\Concerns;
/**
* @author Vuong Minh <vuongxuongminh@gmail.com>
* @since 1.0.0
*/
trait Parameters
{
/**
* Trả về mã Version
*
* @return null|string
*/
public function getVnpVersion(): ?string
{
return $this->getParameter('vnp_Version');
}
/**
* Thiết lập mã Version
*
* @param null|string $code
* @return $this
*/
public function setVnpVersion(?string $code)
{
return $this->setParameter('vnp_Version', $code);
}
/**
* Trả về mã Tmn do VNPay cấp.
*
* @return null|string
*/
public function getVnpTmnCode(): ?string
{
return $this->getParameter('vnp_TmnCode');
}
/**
* Thiết lập mã Tmn.
*
* @param null|string $code
* @return $this
*/
public function setVnpTmnCode(?string $code)
{
return $this->setParameter('vnp_TmnCode', $code);
}
/**
* Trả về khóa dùng để tạo chữ ký dữ liệu.
*
* @return null|string
*/
public function getVnpHashSecret(): ?string
{
return $this->getParameter('vnp_HashSecret');
}
/**
* Thiết lập khóa dùng để tạo chữ ký dữ liệu.
*
* @param null|string $secret
*
* @return $this
*/
public function setVnpHashSecret(?string $secret)
{
return $this->setParameter('vnp_HashSecret', $secret);
}
}