You are here

public function PaymentDeclinedEvent::__construct in Commerce Recurring Framework 8

Constructs a new PaymentDeclinedEvent object.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

int $retry_days: The number of days until the next retry.

int $num_retries: The number of times payment was retried.

int $max_retries: The maximum number of retries.

\Drupal\commerce_payment\Exception\DeclineException $exception: (optional) The payment decline exception.

File

src/Event/PaymentDeclinedEvent.php, line 68

Class

PaymentDeclinedEvent
Defines the payment declined event.

Namespace

Drupal\commerce_recurring\Event

Code

public function __construct(OrderInterface $order, $retry_days, $num_retries, $max_retries, DeclineException $exception = NULL) {
  $this->order = $order;
  $this->retryDays = $retry_days;
  $this->numRetries = $num_retries;
  $this->maxRetries = $max_retries;
  $this->exception = $exception;
}