...
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 and go inside it. Now on your local site window, right click on Extension Name and click Upload. The extension will be uploaded onto your host in a few minutes. The extension will be uploaded onto your host in a few minutes. The correct folder structure would be app/code/Magenest/, then change the name of the unzipped file to the exact name of the extension.
The second method will require you to compress the extension into .zip or .tar.gz format, then execute the following command in your Command Line/Terminal:
...
Now go to your Magento root directory and execute the following commands:
composer require stripe/stripe-php: it is very necessary to initialize library for Stripe.
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
...