You are here

public function DunningSubscriber::__construct in Commerce Recurring Framework 8

Constructs a new DunningSubscriber object.

Parameters

\Drupal\commerce_recurring\Mail\PaymentDeclinedMail $payment_declined_mail: The payment declined mail service.

File

src/EventSubscriber/DunningSubscriber.php, line 28

Class

DunningSubscriber
Sends an email when the payment is declined for a recurring order.

Namespace

Drupal\commerce_recurring\EventSubscriber

Code

public function __construct(PaymentDeclinedMail $payment_declined_mail) {
  $this->paymentDeclinedMail = $payment_declined_mail;
}