Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Mar 22, 2024
1 parent 150f7a9 commit ebf4f52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
14 changes: 4 additions & 10 deletions src/Payum/Action/NotifyAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ final class NotifyAction implements ActionInterface, ApiAwareInterface, GatewayA

private MercadoPagoApi $api;

private LoggerInterface $logger;

public function __construct(LoggerInterface $logger)
{
$this->logger = $logger;
public function __construct(
private LoggerInterface $logger,
) {
}

public function execute($request): void
Expand All @@ -52,11 +50,7 @@ public function execute($request): void
SDK::setIntegratorId('dev_11586dc9e7f311eab4a00242ac130004');

if ('payment' == $data['type']) {
/**
* @psalm-suppress MixedArrayAccess
*
* @var Payment $payment
*/
/** @var Payment $payment */
$payment = Payment::find_by_id($data['data']['id']);

$paymentArray = $payment->toArray();
Expand Down
10 changes: 2 additions & 8 deletions src/Payum/MercadoPagoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@

final class MercadoPagoApi
{
private string $accessToken;

private bool $sandbox;

public function __construct(
string $accessToken,
bool $sandbox,
private string $accessToken,
private bool $sandbox,
) {
$this->accessToken = $accessToken;
$this->sandbox = $sandbox;
}

public function getAccessToken(): string
Expand Down

0 comments on commit ebf4f52

Please sign in to comment.