Integrate OpenCart with 2Checkout Payment API (Supports PayPal Direct)
2Checkout Payment API Setup
OpenCart Settings
- Download the 2Checkout payment module from https://github.com/craigchristenson/opencart-2checkout-api
- Upload the files to your OpenCart directory.
- Sign in to your OpenCart admin.
- Click Extensions tab and Payments subtab.
- Under 2Checkout click Install and then click Edit.
- Enter your 2Checkout Account ID. (2Checkout Account Number)
- Enter your Public Key. (2Checkout Publishable Key)
- Enter your Private Key. (2Checkout Private Key)
- Select No under Sandbox Mode. (Unless you are tesing 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 Account ID. (2Checkout Account Number)
- 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.
- Click the Account tab and Site Management subcategory.
- Under Direct Return select Header Redirect or Given links back to my website.
- Enter your Secret Word.(Must be the same value entered in your OpenCart admin.)
- Set the Approved URL to http://www.yourstore.com/index.php?route=extension/payment/twocheckout\_pp/callback (Replace http://www.yourstore.com with the actual URL to your store.)
- Click Save Changes.
Please feel free to contact 2Checkout directly with any integration questions.