...
In the above example, we switched the local site to the extension directory, and the remote site to the code directory. Now on the remote site window, inside app/code directory, create a folder named Magenest/Stripe and go inside it. Now on your local site window, right-click on Extension Name and click Upload. The extension will be uploaded to your host in a few minutes.
...
Now go to your Magento root directory, say it's named magento2, and execute the following commands:
composer require stripe/stripe-php: it is very necessary to initialize the library for Stripe.
composer require authorizenet/authorizenet
php bin/magento setup:upgrade
...