Go to console.cloud.google.com, create a project, and enable the "Street View Publish API" and "Maps JavaScript API". Create OAuth 2.0 credentials (Web Application type) and an API Key. Enter them in the Settings page.
Take a 360° photo using a compatible camera (Ricoh Theta, Insta360, GoPro MAX, etc.). The photo should be in JPEG format with equirectangular projection and embedded Photo Sphere XMP metadata.
Go to the Upload page, select your photo file, set the GPS location by clicking the map or entering coordinates, set the compass heading, capture date, and optionally a Place ID. Click "Upload to Street View".
To link your photo to a business on Google Maps, you need the Place ID. Visit developers.google.com/maps/documentation/places/web-service/place-id and search for the business to find its Place ID.
After uploading, your photo will be processed by Google. It may take several hours to several days before it appears publicly on Google Maps. You can check the status in the "My Photos" page.