- Issue created by @sorson
- 🇳🇱Netherlands Gerben Spil
I wrote a quick patch that will put the text in a template file. This way, you can at least override the original English version and add a translation that matches the original English version.
The text that is displayed after a successful payment is hard coded. This should be configurable in the admin UI.
Especially because the instructions don't make any sense for iDeal payments where the payment is instantly processed.
Change the function in modules/contrib/commerce_mollie/src/Plugin/Commerce/PaymentGateway/Mollie.php
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;
}
So that it is configurable in admin UI: /admin/commerce/config/payment-gateways/manage/gateway_name
Active
1.9
Code
I wrote a quick patch that will put the text in a template file. This way, you can at least override the original English version and add a translation that matches the original English version.