Test Environment Setup
Test environment setup and general credentials for 1-CP Corporate Checkout
This page covers the general testing environment setup for 1-CP Corporate Checkout. For payment provider-specific test cards, see the individual payment configuration sections.
π Environment Configuration
Staging Environment (*.1-cp.io)
*.1-cp.io)API Base URL:
https://api.1-cp.ioDashboard URL:
https://dash.1-cp.ioCheckout URL:
https://checkout.1-cp.ioPurpose: Development, testing, and integration validation
Production Environment (*.1-cp.com)
*.1-cp.com)API Base URL:
https://api.1-cp.comDashboard URL:
https://dash.1-cp.comCheckout URL:
https://checkout.1-cp.comPurpose: Live transactions and production workloads
π Test API Credentials
Getting Your Test Credentials
Register at Staging Dashboard
Navigate to Config β Widget
Create a test widget to get your
client-idandclient-secretUse these credentials for all staging API calls
Authentication Example
π’ Test Business Units
Default Test Business Unit
Name: Test Corporate BU
Currency: EUR, USD (multi-currency enabled)
Features: All payment methods enabled
Location: Available in staging dashboard
Creating Additional Test Business Units
Log in to dash.1-cp.io
Navigate to Organization β Business Units
Create new business unit with test data
Configure payment methods and permissions
π₯ Test User Accounts
Test Admin User
Email:
[email protected]Role: Admin (full access)
Business Unit: Test Corporate BU
Permissions: All resources (read, write, admin)
Test Employee User
Email:
[email protected]Role: User (limited access)
Business Unit: Test Corporate BU
Permissions: Transaction creation only
βοΈ SDK Configuration for Testing
Web SDK Test Setup
Backend API Configuration
π° Test Transaction Limits
Staging Environment Limits
Minimum Amount: β¬0.01 / $0.01
Maximum Amount: β¬10,000 / $10,000
Daily Limit: β¬50,000 / $50,000 per business unit
Monthly Limit: No limit in staging
Test Amount Guidelines
Use round numbers for easy verification (β¬100.00, $250.00)
Test both small amounts (β¬1.00) and larger amounts (β¬1,000.00)
Include decimal precision testing (β¬123.45)
π Test Data Guidelines
Customer Information
Use realistic but obviously fake data:
Transaction Data
Reference Numbers: Use prefixes like
TEST-,DEMO-,STAGING-Descriptions: Clear indication of test nature
Categories: Use all available categories (ACCOMMODATION, FLIGHT, etc.)
π Webhook Testing
Test Webhook Endpoints
For local development and testing:
ngrok:
https://ngrok.com- For local testing with public URLswebhook.site:
https://webhook.site- For quick webhook testingrequestbin.com:
https://requestbin.com- For inspecting webhook payloads
Webhook Configuration
Test Webhook Events
All webhook events are triggered in staging:
transaction.createdtransaction.updatedtransaction.completedpayment.completedpayment.failed
π§ͺ Testing Best Practices
Test Scenarios Checklist
Data Cleanup
Test transactions are automatically purged after 30 days in staging
No real money is processed in staging environment
All test data is clearly marked in the dashboard
Use consistent test data prefixes for easy identification
π§ Rate Limits in Testing
Staging Environment Limits
API Calls: 1,000 requests/minute
Transaction Creation: 100 transactions/minute
Webhook Delivery: 500 events/minute
Note: Production limits are more restrictive. Contact [email protected] for production rate limit information.
π― Provider-Specific Test Credentials
For actual test card numbers and provider-specific testing scenarios:
Stripe Test Cards - Stripe-specific test cards and scenarios
Gateway Test Cards - Gateway Payment sandbox credentials
β Troubleshooting Test Environment
Common Issues
Invalid API Credentials
Ensure you're using staging credentials from dash.1-cp.io
Verify your widget configuration is active
Check that your client-id and client-secret are correct
CORS Errors
Verify your domain is whitelisted in widget configuration
Check that you're using the correct staging URLs
Ensure proper headers are set in your requests
Payment Failures
Verify you're using correct test cards for the payment provider
Check that the payment method is enabled in your business unit
Ensure currency compatibility between transaction and payment method
Getting Help
Test Environment Issues: [email protected]
Integration Questions: Check our certification guide
API Documentation: docs.one-cp.com/api-reference
Error Reference: Error Messages & Troubleshooting
Last updated