This article will show you how to install and set up Monetha's plugin for Magento 2.
1. Install Magento 2 plugin
a. Download the Magento 2 plugin from here.
b. Copy Monetha folder into
php ./vendor/composer/composer/bin/composer config repositories.monetha/payment-plugin-php-sdk vcs https://github.com/monetha/payment-plugin-php-sdk.git
php ./vendor/composer/composer/bin/composer require monetha/payment-plugin-php-sdk:dev-master
(in case if you're updating the plugin version, run this instead)
php ./vendor/composer/composer/bin/composer update monetha/payment-plugin-php-sdk)
c. Perform the following actions:
- Disable Magento cache with 'php bin/magento cache:disable'.
- Install the extension with 'php bin/magento setup:upgrade' command.
- Enable Magento cache with 'php bin/magento cache:enable'.
- Re-deploy static content of Magento in case it missing after upgrade 'php bin/magento setup:static-content:deploy'.
Access tokens for repo.magento.com (if required) you can get here.
Issues that you may encounter on the 2-3 steps can be related with outdated build-in composer binary.
In this case download newest composer.phar and run it instead like php /path/to/composer.phar ... or just composer ... if you have it in your $PATH).
2. Configure Magento 2 plugin
a. Go to Magento -> Stores -> Configuration section in the menu.
b. Under "Sales" select "Payment Methods".
c. Click "Other Payment Options".
d. Select "Yes" next to "Enabled", enter the following information:
- Merchant Secret
- API key
At first, we will provide you with test credentials to try out the payment gateway in a safe sandbox environment.
- Set Test Mode to "Yes" for live shop
3. Test the gateway
When you are ready, contact us and we will send a test order to your shop. Alternatively, you can explore the gateway yourself.
4. Set it live
a. After making sure that everything is working, we will create your own "Merchant Secret" and "API key". They can be found in "Payment settings".
b. Simply replace the test credentials with your newly made "Merchant Secret" and "API key", then set Test Mode to "No".
That’s it! You are ready to accept cryptocurrency!
If you have any questions or requests, feel free to ask them via email@example.com