Magento handles payment gateways as modules, similar in spirit to WooCommerce, but they’re typically installed via Composer rather than a simple admin upload, and configuration lives under Stores > Configuration rather than a dedicated payments tab.
- Confirm your store runs over HTTPS throughout, including checkout.
- Install the provider’s official Magento extension, usually via Composer (
composer require vendor/module-name) or the Adobe Commerce Marketplace, then runbin/magento module:enableandsetup:upgrade. - Clear the cache with
bin/magento cache:flush— Magento is notorious for serving stale configuration after a module install. - Configure the gateway under Stores > Configuration > Sales > Payment Methods, enter your API credentials, and set it to sandbox/test mode.
- Place a full test order using the provider’s test card numbers, and confirm the order status transitions correctly under Sales > Orders.
- Check invoice and credit memo generation work for a test refund before relying on it for real customers.
- Switch credentials to live and flush the cache again before accepting real payments.
Magento’s full-page cache and any Varnish or CDN layer in front of it can mask a broken payment method change — always clear the application cache and any CDN/Varnish cache after touching payment settings, not just one or the other.
Using a different platform? See all payment gateway setup guides, or check our comparison table for which providers have official support for your platform.
Frequently asked questions
Does Magento need special modules for payment gateways?
Yes, almost always installed via Composer or the Adobe Commerce Marketplace, then enabled through the Magento command line, rather than a simple dashboard toggle.
Why do I need to clear the cache after changing payment settings in Magento?
Magento’s cache and any Varnish or CDN layer can keep serving a stale version of your checkout or configuration, hiding whether your change actually took effect.
Can I test a payment gateway before going live on Magento?
Yes, virtually every major gateway provides sandbox credentials and test card numbers that behave the same way as live ones inside Magento’s checkout.