Commit 8c0b1d9f authored by Goran Nikolovski's avatar Goran Nikolovski Committed by Goran Nikolovski
Browse files

Issue #3304289 by gnikolovski: Fix send mail failure message

parent be3c1b39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ class BancaIntesaOffsiteRedirect extends OffsitePaymentGatewayBase implements Of
    if ($success == FALSE) {
      if (!empty($this->configuration['send_mail']['fail'])) {
        $mail_message = $this->t('Something went wrong at @gateway. Please review your information and try again.', [
          '@gateway' => $this->bancaIntesaService->getPaymentGatewayName($this->configuration),
          '@gateway' => $this->getPaymentGatewayName(),
        ]);
        $payment_report = $this->bancaIntesaService->buildPaymentReportTable($request);
        $this->bancaIntesaService->sendMail($order, $mail_message, $payment_report);