1, 'deliveryPayment' => 1, ]; } public function getVars($smarty_tpl_vars) { return [ 'isPayment' => $this->getWindow() instanceof \DeliveryTypesPayment, ]; } public function handleUpdate() { if ($this->getWindow() instanceof \DeliveryTypesPayment) { $data = $this->window->getData()['custom_data'] ?? []; $customData = $this->window->getCustomData(); $customData['sap_code'] = trim($data['sap_code'] ?? null); $this->window->setCustomData($customData); } } public function getLabel() { return 'SAP'; } }