2Checkout
Quick Start
- Sign up at 2checkout.com and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
2Checkout payment integration
| Provider ID | twocheckout |
| Category | Card Processors |
| Website | 2checkout.com |
Authentication
- Method: Basic Auth (Base64)
- Base URL:
https://api.2checkout.com/rest/6.0
Configuration
Required Parameters
| Parameter | Description |
|---|---|
merchant_code | Merchant Code |
secret_key | Secret Key |
Example Configuration
{
"provider": "twocheckout",
"provider_params": {
"merchant_code": "your_merchant_code_here",
"secret_key": "your_secret_key_here"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
CANCELED | cancelled | |
COMPLETE | charged | |
PAYMENT_RECEIVED | charged | |
AUTHRECEIVED | charging | |
PENDING | charging | |
PAYMENT_AUTHORIZED | charging | |
REFUND | refunded | |
REVERSED | refunded | |
FRAUD | rejected | |
INVALID | rejected |
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /orders/ | |
| GET | /orders/#{ref_no}/ | |
| POST | /orders/#{ref_no}/refunds/ |