Integrate Magento with 2Checkout Payment API (Supports PayPal Direct)
JavaScript PHP HTML
Switch branches/tags
Nothing to show
Clone or download
Latest commit 14e5340 Jun 2, 2017

Signup free with 2Checkout and start selling!

Integrate Magento with 2Checkout Payment API (Supports PayPal Direct)

2Checkout Payment API/PayPal Direct Setup

2Checkout Settings

  1. Sign in to your 2Checkout account.
  2. Click the Account tab and Site Management subcategory.
  3. Under Direct Return select Header Redirect.
  4. Enter your Secret Word.(Must be the same value entered in your Magento admin.)
  5. Set the Approved URL to (Replace with the actual URL to your store.)
  6. Click Save Changes.
  7. Click the Create Username link and create a new username with API Access and API Updating selected for the Access type. More information here
  8. Click the Notifications icon, enable the Order Created and Fraud Status Changed messages and set in the URL fields. (replace with your actual site URL)
  9. Click Save Changes.

Magento Settings

  1. Download the 2Checkout payment module from
  2. Upload the files to your Magento directory.
  3. Sign in to your Magento admin.
  4. Flush your Magento cache under System->Cache Management and reindex all templates under System->Index Management.
  5. Navigate to Payment Methods under System->Configuration->Payment Methods and open 2Checkout API.
  6. Enter your Seller ID. (2Checkout Account Number)
  7. Enter your Publishable Key. (2Checkout Publishable Key)
  8. Enter your Private Key. (2Checkout Private Key)
  9. Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
  10. Select No under Sandbox Mode. (Unless you are tesing in the 2Checkout Sandbox)
  11. (Optional) Enter your 2Checkout Admin API username and password (this is only required if you use Live Refunds functionality) If you have not yet created an Admin API user, please login to your 2Checkout account, and do so. This username and password can then be entered in API username and password fields in Magento.
  12. (Optional) Select whether or not your want to enable Live Refunds. (This uses the 2Checkout API to issue a live refund to the customer when you issue a credit memo in Magento.)
  13. Select Yes under Enabled for 2Checkout API and 2Checkout PayPal Direct.
  14. Save your changes.

Please feel free to contact 2Checkout directly with any integration questions.


PHP 5.4.0 or later.