This official module allows you to accept credit card payments via the Stancer platform directly on Magento 2.x.
| Magento version | PHP Version |
|---|---|
| 2.x | 7.4 or greater |
In order to configure the Magento 2 module, you need Stancer API keys. You can find your keys in the Developers
tab on your Stancer account.
When creating your account, a private and public key is automatically generated for test mode. Live mode keys will be created after account validation.
The module allows you to make payments by credit card.
Payments are 3D Secure compatible. The amount from which 3D Secure is triggered can be configured from the module in the Magento Admin panel.
Creating an account in the Magento Marketplace is not typically required when manually installing extensions, as manual installation does not involve Magento Marketplace authentication keys.
However, if you are using the Magento 2 Marketplace to download extensions, you might need to set up your authentication keys. Here's how you can do it.
The recommended way of installing is through Magento Marketplace, where you can find The Official Stancer Payment Module.
Before starting, back up your website, including the database and files.
Download the extension package to your local machine, host, or server.
Navigate to the Magento 2 installation directory and extract the contents of the ZIP file
to the app/code/StancerIntegration/Payments directory.
Enable the maintenance mode by running the following command:
php bin/magento maintenance:enableOpen the composer.json file in your Magento root directory and add a reference to the extension you just uploaded.
You can do this by adding a repositories section to your composer.json file.
"repositories": [
{
"type": "path",
"url": "app/code/StancerIntegration/Payments"
}
]In the command line, use Composer to require the extension. Run the following command:
composer require stancer/cms-magentoAfter the installation, you need to enable the extension. Run the following commands:
php bin/magento module:enable StancerIntegration_Payments
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento cache:cleanphp bin/magento setup:static-content:deploy -fFinally, flush the cache to ensure that your changes take effect:
php bin/magento cache:flushphp bin/magento maintenance:disableNavigate to this page Stores -> Configuration -> Sales -> Payment Methods.
-
Expand Stancer configuration by clicking on
Configurebutton. -
Select
Environment(default: test) -
Enter your
PublicandPrivatekeys. -
Choose desired
Payment Flow. -
Config
3D Secureif you want to activate secure payments. -
Save Config.
This module is using the Stancer API Library for PHP.
MIT license.
For more information, see the LICENSE file.