How to integrate X-Cart with 2Checkout

Standard Checkout
Process credit cards for your store using 2Checkout's Hosted Checkout.
Inline Checkout
Payment API
Recurring Payments
Plugin Required

X-Cart Settings:

  1. Sign in to your X-Cart admin
  2. Under Administration menu select Payment Methods
  3. Under Payment Gateways select 2Checkout from the drop-down list and click the Add button.

    Please Note: If you set up a payment method providing online credit card payment processing and do not intend to process credit card payments manually, you should disable the default “Credit Card” payment method, that requires manual payment processing, by unselecting the check-box next to the payment method’s name. Additionally, you can change the default “Credit Card” payment method’s name to “Credit Card (offline)”, and change the online payment method’s name to “Credit Card”. This will help you to avoid any confusion between these two payment methods. The $store_cc variable in the config.php file must be set to false in case you disable the default ‘Credit Card’ payment method and do not intend to process credit card payments manually.

  4. Enter your 2Checkout Account Number
  5. Enter your Secret Word (Must be the same value entered on your 2Checkout Site Management page.)
  6. Under Purchase Routine select either single-page or multi-page
  7. (Optional) Under Order Prefix enter a prefix that will be automatically added to IDs of orders placed in your store and paid through 2Checkout
  8. Click Update

2Checkout Settings:

In the IntegrationsWebhooks & API section in the cPanel, you will find all the necessary tools to connect your third-party store creators to your 2checkout account. From this centralized integrations section you will be able to:

  1. Set up INS/LCN/IPN (found on other third-party store creators as Global URL)
  2. Have access to your Merchant code (also referred to as Seller ID, Account ID, Merchant ID)
  3. Add Return URL with header redirect or link in Thank you page (also referred to as Return link, Approved URL, Thank you link, Given links back to my website)
  4. Generate an INS secret word (also referred to as Secret word, Secret Key)
  5. Generate private API keys, or use any API information required for your authentication

For more information visit:

About X-Cart

X-Cart is highly-customizable, template-based PHP + MySQL shopping cart software. The software can be used both as a ready out-of-the-box shopping cart solution and as a powerful PHP shopping cart engine for a customized web shop.

Simplify the eCommerce process. Try 2Checkout.
The most flexible digital commerce platform that can give your business a real boost.