Complete guide to integrating 2Checkout global payment solutions
For additional support, visit our Support Center
Comprehensive payment solutions for digital commerce
Competitive rates starting at 3.5% + $0.35 per transaction. Volume discounts available.
Visit 2Checkout Signup and create a new merchant account.
Provide business documentation and complete the verification process.
Log into your 2Checkout Control Panel.
Navigate to "Integrations" → "Webhooks & API" to get your merchant code and secret key.
Add these environment variables to your .env file:
APP_2CHECKOUT_MERCHANT_CODE="your_merchant_code"
APP_2CHECKOUT_SECRET_KEY="your_secret_key"
APP_2CHECKOUT_SANDBOX="true"
Note: Set SANDBOX to "false" for production environment.
/api/finance/deposit/fiat/2checkout/
Initiates a 2Checkout payment
Request Body:
{
"amount": 100.00,
"currency": "USD",
"product_name": "Deposit",
"customer_email": "user@example.com"
}
/api/finance/deposit/fiat/2checkout/verify
Verifies payment status
/api/finance/deposit/fiat/2checkout/webhook
Handles IPN notifications
/api/finance/deposit/fiat/2checkout/status
Checks payment status
2Checkout provides a sandbox environment for testing. Set APP_2CHECKOUT_SANDBOX="true" for testing.
All sandbox transactions are simulated and will not result in real charges.