Skip to main content

2Checkout

Quick Start
  1. Sign up at 2checkout.com and obtain API credentials
  2. Create a terminal in the Admin Console with the parameters below
  3. Start processing — the adapter is pre-built and ready to use

Go to 2Checkout →

Overview

2Checkout payment integration

Provider IDtwocheckout
CategoryCard Processors
Website2checkout.com

Authentication

  • Method: Basic Auth (Base64)
  • Base URL: https://api.2checkout.com/rest/6.0

Configuration

Required Parameters

ParameterDescription
merchant_codeMerchant Code
secret_keySecret Key

Example Configuration

{
"provider": "twocheckout",
"provider_params": {
"merchant_code": "your_merchant_code_here",
"secret_key": "your_secret_key_here"
}
}

Status Mapping

Provider Status4pay StatusDescription
CANCELEDcancelled
COMPLETEcharged
PAYMENT_RECEIVEDcharged
AUTHRECEIVEDcharging
PENDINGcharging
PAYMENT_AUTHORIZEDcharging
REFUNDrefunded
REVERSEDrefunded
FRAUDrejected
INVALIDrejected

API Reference

MethodEndpointDescription
POST/orders/
GET/orders/#{ref_no}/
POST/orders/#{ref_no}/refunds/

Resources