you have to check this `$request->getModel()->payer->payment_method` with `isset` before accessing it. In other case you can get a fatal error if user do not set it.