/**
  * Resumes the payment context.
  *
  * @param \Drupal\payment\Entity\PaymentInterface $payment
  *
  * @return array
  *   A renderable array.
  */
 public function execute(PaymentInterface $payment)
 {
     $message = $this->t('You can now <span class="payment_reference-window-close">close this window</span>.');
     if ($payment->access('view')) {
         $message = $this->t('Your payment is %status.', ['%status' => $payment->getPaymentStatus()->getPluginDefinition()['label']]) . ' ' . $message;
     }
     return ['#attached' => ['library' => ['payment_reference/resume_context']], '#type' => 'markup', '#markup' => $message];
 }