/**
* @param WC_Order $order
* @param Mollie_API_Object_Payment $payment
* @param bool $admin_instructions
* @param bool $plain_text
* @return string|null
*/
protected function getInstructions(WC_Order $order, Mollie_API_Object_Payment $payment, $admin_instructions, $plain_text)
{
// No definite payment status
if ($payment->isOpen()) {
if ($admin_instructions) {
// Message to admin
return __('We have not received a definite payment status.', 'mollie-payments-for-woocommerce');
} else {
// Message to customer
return __('We have not received a definite payment status. You will receive an email as soon as we receive a confirmation of the bank/merchant.', 'mollie-payments-for-woocommerce');
}
} elseif ($payment->isPaid()) {
return sprintf(__('Payment completed with <strong>%s</strong>', 'mollie-payments-for-woocommerce'), $this->get_title());
}
return null;
}