preg_replace('/\D/', '', $amount), 'addInfo' => trim($content), 'accountName' => $bank->account_name, ], fn (?string $value) => $value !== null && $value !== ''); return "https://img.vietqr.io/image/{$bank->bank_code}-{$bank->account_no}-compact2.png?" . http_build_query($params, '', '&', PHP_QUERY_RFC3986); } }