Integrate Magento2 with 2Checkout
2Checkout Payment Module Setup
2Checkout Settings
- Sign in to your 2Checkout account.
- Click the Account tab and Site Management subcategory.
- Under Direct Return select Header Redirect.
- Enter your Secret Word.(Must be the same value entered in your Magento admin.)
- Set the Approved URL to https://www.yourstore.com/tco/standard/response (Replace https://www.yourstore.com with the actual URL to your store.)
- Click Save Changes.
Magento Settings
- Download the 2Checkout payment module from https://github.com/craigchristenson/magento2-2checkout
- Upload the included Tco directory to “app/code/” your Magento root directory.
- On your server, install the module by running
bin/magento setup:upgrade
in your magento root directory.
- Sign in to your Magento admin.
- Flush your Magento cache under System->Cache Management and reindex all templates under System->Index Management.
- Navigate to Payment Methods under Stores->Configuration->Sales->Payment Methods expand 2Checkout and make sure that it is enabled.
- Select No under Sandbox. (Unless you are testing in the 2Checkout Sandbox)
- Enter your Merchant ID. (2Checkout Account Number)
- Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
- Save your changes.
Please feel free to contact 2Checkout directly with any integration questions.