Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| Config | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php namespace Framework\PagSeguro; |
| 2 | |
| 3 | class Config |
| 4 | { |
| 5 | /** |
| 6 | * @var string production or sandbox |
| 7 | */ |
| 8 | public string $environment = 'sandbox'; |
| 9 | /** |
| 10 | * @var string Seller email |
| 11 | */ |
| 12 | public string $email; |
| 13 | /** |
| 14 | * @see https://sandbox.pagseguro.uol.com.br/vendedor/configuracoes.html |
| 15 | * @see https://pagseguro.uol.com.br/preferencias/integracoes.jhtml |
| 16 | * |
| 17 | * @var string Seller Token |
| 18 | */ |
| 19 | public string $token; |
| 20 | /** |
| 21 | * @var string Accepted charset. UTF-8 or ISO-8859-1 |
| 22 | */ |
| 23 | public string $charset = 'UTF-8'; |
| 24 | /** |
| 25 | * @var string Accepted currency |
| 26 | */ |
| 27 | public string $currency = 'BRL'; |
| 28 | /** |
| 29 | * @var string URL to redirect back after payment |
| 30 | */ |
| 31 | public string $redirectURL; |
| 32 | /** |
| 33 | * @var string Notification URL for payment status changes |
| 34 | */ |
| 35 | public string $notificationURL; |
| 36 | /** |
| 37 | * @var bool Log status |
| 38 | */ |
| 39 | public bool $logActive = true; |
| 40 | /** |
| 41 | * @var string Payment log path |
| 42 | */ |
| 43 | public string $logPath = __DIR__ . '/../logs/pagseguro.log'; |
| 44 | /** |
| 45 | * @var string Notification log path |
| 46 | */ |
| 47 | public string $logNotificationPath = __DIR__ . '/../logs/pagseguro-notification.log'; |
| 48 | } |