Accept credit card payments through the Stripe payment gateway.
In your Magento 2 root directory run
composer require tnw/module-stripe
bin/magento setup:upgrade
The module can be installed without Composer by downloading the desired
release from https://github.com/tnw/module-stripe/releases and placing
the contents in app/code/TNW/Stripe/
The module depends on the Stripe PHP-SDK which should be added to your
project via composer by running composer require stripe/stripe-php:5.2.0
With the module files in place and the Stripe SDK installed,
run bin/magento setup:upgrade
The configuration can be found in the Magento 2 admin panel under
Store->Configuration->Sales->Payment Methods->Stripe
Integration with Stripe Gateway - Wiki