getPayment(); if (false === strpos($payment->getMethod(), 'klarna_')) { return; } $payment->setInvoice($observer->getInvoice()); } }