To make sure a payment gateway is properly setup and working, use the payment gateway verification feature:
1. In Settings > Payments
Click on Verify for the payment gateway you want to test
2. Pick a currency in the list, fill in details from a valid card then click on 'Verify Credentials'
3. If you're using Stripe and get an error, please check this article which might help you solve the issue.