Skip to main content
knowledgecenter.2checkout.com

Integrate WooCommerce

Availability

WooCommerce integration is available only for 2Checkout accounts that handle their own tax and invoice management (2Sell and 2Subscribe accounts). 

Inline Checkout

WooCommerce provides a payment module that integrates with our Inline Checkout. Visit the WooCommerce Documentation for integration instructions.

Payment API

WooCommerce Settings

  1. Download or clone the extension from Github.
  2. Copy the ‘twocheckout’ folder to your WordPress ‘plugins’ directory under ‘/wp-content/plugins’.
  3. In your WordPress admin, navigate to Plugins and install the 2Checkout Payment Gateway plugin.
  4. Navigate to your WooCommerce settings page, click on Payment Gateways and click the Twocheckout link.
  5. Check to enable.
  6. Enter the payment title and description.
  7. Enter in your 2Checkout Account Number (SID)
  8. Enter your 2Checkout API publishable key.
  9. Enter your 2Checkout API private key.
  10. Click Save Changes.

Important note: The API keys can be found in your 2Checkout Merchant Control Panel, under Integrations → Webhooks and API → API area → API Keys.

PayPal Direct

WooCommerce Settings

  1. Download or clone the extension from Github.
  2. Copy the ‘twocheckoutpp’ folder to your WordPress plugins directory under ‘/wp-content/plugins’.
  3. In your WordPress admin, navigate to Plugins and install the 2Checkout PayPal Direct Gateway plugin.
  4. Navigate to your WooCommerce settings page, click on Payment Gateways and click the Twocheckoutpp link.
  5. Check to Enable.
  6. Enter the payment title and description.
  7. Enter in your 2Checkout Account Number (SID)
  8. Enter the INS Secret Word from the 2Checkout Merchant Control Panel. After logging in to your 2Checkout account, navigate to Control Panel: → Integrations → Webhooks & API → Secret Word → INS Secret word
  9. Your INS secret word should be the same as your buy-link secret word (found under Dashboard → Integrations → Webhooks & API, scroll down to the Secret Word area, as shown in the image below). Edit your INS secret word and buy-link secret word to match each other, then copy and paste them into the WooCommerce admin.INS secret word.png
  10. Click Save Changes.

2Checkout Settings

  1. Sign in to your 2Checkout account.
  2. Navigate to Dashboard → Integrations → Webhooks & API section
  3. Follow these steps to activate Redirect URL:
    • In the Redirect URL section check “Enable return after sale”
    • For Redirect URL section, set the Approved URL to your WooCommerce URL
    • For Return method, select Header Redirect
    • Click Update to save your settings

For more information visit: woothemes.com/woocommerce.

About WooCommerce

WooCommerce is the most popular WordPress eCommerce plugin. And it’s available for free. Packed full of features, perfectly integrated into your self-hosted WordPress website.

  • Was this article helpful?