Skip to content

Commit

Permalink
fix: wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Jan 24, 2025
1 parent fa2ffe0 commit dfbf875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Framework/PaymentGateways/Webhooks/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class Webhook

public function __construct(PaymentGateway &$paymentGateway)
{
if ($this->paymentGateway->canListeningWebhookNotifications()) {
if ($paymentGateway->canListeningWebhookNotifications()) {
$paymentGateway->routeMethods[] = $this->webhookNotificationsListener;
}

$this->paymentGateway = &$paymentGateway;
$this->events = new WebhookEvents($paymentGateway::id());
}
Expand Down

0 comments on commit dfbf875

Please sign in to comment.