function fastCheckout() { $data = $this->fastCheckout->loadFastCheckoutData($_SESSION['customer_id']); if ($this->fastCheckout->canCustomerFastCheckoutCc($_SESSION['customer_id']) && $this->code === 'paymillCc') { if (!empty($data['paymentID_CC'])) { $this->paymentProcessor->setPaymentId($data['paymentID_CC']); } } if ($this->fastCheckout->canCustomerFastCheckoutElv($_SESSION['customer_id']) && $this->code === 'paymillElv') { if (!empty($data['paymentID_ELV'])) { $this->paymentProcessor->setPaymentId($data['paymentID_ELV']); } } }