receipt !== null) { $attributes['INVENTORY'] = $this->receipt->toInventoryAttribute(); $attributes['CLIENT'] = $this->receipt->toClientAttribute(); $duplicates = [ 'CUSTOMER' => $this->receipt->toCustomerAttribute(), 'PHONE' => $this->receipt->toPhoneAttribute(), ]; $attributes += array_filter($duplicates, static fn(?string $value): bool => $value !== null); } return CallbackResponse::xml( MntResponseXml::build( accountId: $this->accountId, transactionId: $this->transactionId, resultCode: $this->resultCode, amount: $this->amount, signature: $this->signature->forResponse($this->resultCode, $this->accountId, $this->transactionId), cms: $this->cms, attributes: $attributes, ), ); } }