Integrate OpenCart
Availability
OpenCart integration is available only for 2Checkout accounts that handle their own tax and invoice management (2Sell and 2Subscribe accounts).
2Checkout Payment API Setup
OpenCart Settings
- Download the 2Checkout payment module from Github.
- Upload the files to your OpenCart directory.
- Sign in to your OpenCart admin.
- Click the Extensions tab and Payments subtab.
- Under 2Checkout click Install and then click Edit.
- Enter your 2Checkout Merchant Code or Secret Word. (Must be the same value entered on your 2Checkout Control Panel.) To obtain the Merchant Code (or Secret Word), log in to your 2Checkout Merchant Control Panel and navigate to Integrations → Webhooks & API → Secret Word → INS Secret word. Your INS secret word should be the same as the buy-link secret word (can be found under Dashboard → Integrations → Webhooks & API, scroll down to the Secret Word area, under the INS Secret Word). Edit your INS secret word and buy-link secret word to match each other, then copy and paste them into your Open Cart admin.
- Enter your Public Key. (2Checkout Publishable Key)
- Enter your Private Key. (2Checkout Private Key)
- Select No under Sandbox Mode. (Unless you are testing in the 2Checkout Sandbox)
- Select Complete under Order Status.
- Select Enabled under Status.
- Save your changes.
2Checkout PayPal Direct Setup
OpenCart Settings
- Sign in to your OpenCart admin.
- Click Extensions tab and Payments subtab.
- Under 2Checkout PayPal Direct click Install and then click Edit.
- Enter your 2Checkout Merchant Code.
- Select Complete under Order Status.
- Select Enabled under Status.
- Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
- Save your changes.
2Checkout Settings:
- Sign in to your 2Checkout account.
- Navigate to Dashboard → Integrations → Webhooks & API
- Follow these steps to activate Redirect URL:
- In the Redirect URL section check “Enable return after sale”
- For Return method, select Link in the Thank You Page
- Set the Approved URL to http://www.yourstore.com/index.php?r...ckout/callback (Replace http://www.yourstore.com with the actual URL to your store.).
- Click Update to save your settings
Standard/Inline
OpenCart Settings:
- Sign in to your OpenCart admin.
- Click Extensions tab and Payments subtab.
- Under 2Checkout Click Install and then click Edit.
- Enter your 2Checkout Merchant Code or Secret Word. (Must be the same value entered on your 2Checkout Control Panel.) To obtain the Merchant Code (or Secret Word), contact 2Checkout or, if you already have a 2Checkout account, navigate to Control Panel → Integrations → Webhooks & API → Secret Word → INS Secret word. .
- Select No under Test Mode.
- Select Complete under Order Status.
- Select Enabled under Status.
- Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page)
- Save your changes.
2Checkout Settings:
- Sign in to your 2Checkout account.
- Navigate to Dashboard → Integrations → Webhooks & API
- Follow these steps to activate Redirect URL:
- In the Redirect URL section check “Enable return after sale”
- For Return method, select Link in the Thank You Page
- Set the Approved URL to http://www.yourstore.com/index.php?r...ckout/callback (Replace http://www.yourstore.com with the actual URL to your store).
- Click Update to save your settings
If you would like to use Inline Checkout, install the updated payment module at https://github.com/craigchristenson/opencart-2checkout