You will need a Magento Marketplace account, you can then link the account to your Magento 2 store and add the free eWAY and Stripe Magento 2 extension to your account.
After that we use composer to install both these modules.
In the Magento 2 directory, run the command (note, please ensure you are using the latest version)
composer require eway/eway-rapid-magento2 3.0.2
Then ensure everything is updated with
composer update
Enable the module with the following command:
bin/magento module:enable --clear-static-content Eway_DirectConnection Eway_SharedPage Eway_SecureFields Eway_IFrame Eway_TransparentRedirect Eway_EwayRapid
Install the module by running
bin/magento setup:upgrade
Run the compile command to finish:
bin/magento setup:di:compile
link to Purchase free extension from Magento Marketplace:
https://marketplace.magento.com/stripe-stripe-payments.html
https://marketplace.magento.com/eway-eway-rapid-magento2.html
You must get the auth keys from magento 2 account to install both extensions
command to install stripe :
composer require stripe/stripe-payments
After installing :
php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento cache:clean