You are here

public function Mollie::buildPaymentInstructions in Commerce Mollie 8

Builds the payment instructions.

Parameters

\Drupal\commerce_payment\Entity\PaymentInterface $payment: The payment.

Return value

array A render array containing the payment instructions.

Overrides HasPaymentInstructionsInterface::buildPaymentInstructions

File

src/Plugin/Commerce/PaymentGateway/Mollie.php, line 301

Class

Mollie
Provides the Mollie payment gateway.

Namespace

Drupal\commerce_mollie\Plugin\Commerce\PaymentGateway

Code

public function buildPaymentInstructions(PaymentInterface $payment = NULL) {
  $instructions = [
    '#type' => 'processed_text',
    '#text' => $this
      ->t('Thank you for your payment with @gateway. We will inform you when your payment is processed. This is usually done within 24 hours.', [
      '@gateway' => $this
        ->getDisplayLabel(),
    ], [
      'context' => 'Mollie payment instructions',
    ]),
    '#format' => 'plain_text',
  ];
  return $instructions;
}