Right now we have these messages that are displayed to consumers:
> Betaling wordt a-sync verwerkt. @todo: maak deze tekst begrijpbaar voor consumenten.
> You have returned checkout at @gateway. We will inform you when you payment has been validated.

  /**
   * Builds the payment instructions.
   *
   * @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
   *   The payment.
   *
   * @return array
   *   A render array containing the payment instructions.
   */
  public function buildPaymentInstructions(PaymentInterface $payment = NULL) {
    $instructions = [
      '#type' => 'processed_text',
      '#text' => 'Betaling wordt a-sync verwerkt. @todo: maak deze tekst begrijpbaar voor consumenten.',
      '#format' => 'plain_text',
    ];
  /**
   * {@inheritdoc}
   */
  public function onReturn(OrderInterface $order, Request $request) {
    drupal_set_message($this->t('You have returned checkout at @gateway. We will inform you when you payment has been validated.', [
      '@gateway' => $this->getDisplayLabel(),
    ]));
  }

We should also add a $context to the t() function and always use the t() function.
Example from address module:

t('Street address', [], ['context' => 'Address label']),
t('First name', [], ['context' => 'Address label']),
t('Last name', [], ['context' => 'Address label']),

Maybe context could be 'Commerce Mollie message'

Comments

ndf created an issue. See original summary.

ndf’s picture

I dropped the green status message.
And the text under "Payment instructions" is now.

Thank you for your payment with Mollie. We will inform you when your payment is processed. This is usually done within 24 hours.

You will see this message when you return from Mollie. (So after you have payed).

ndf’s picture

Status: Active » Needs review
finne’s picture

Status: Needs review » Reviewed & tested by the community

Review: code and textually OK.

  • ndf authored 74a25de on 8.x-1.x
    #2908763 by ndf: Improve UI messages
    
    * updates messages
    
    * improved...
ndf’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.