flask-vialTest 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)

  • API Base URL: https://api.1-cp.io

  • Dashboard URL: https://dash.1-cp.io

  • Checkout URL: https://checkout.1-cp.io

  • Purpose: Development, testing, and integration validation

Production Environment (*.1-cp.com)

  • API Base URL: https://api.1-cp.com

  • Dashboard URL: https://dash.1-cp.com

  • Checkout URL: https://checkout.1-cp.com

  • Purpose: Live transactions and production workloads

πŸ”‘ Test API Credentials

Getting Your Test Credentials

  1. Navigate to Config β†’ Widget

  2. Create a test widget to get your client-id and client-secret

  3. Use 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

  1. Navigate to Organization β†’ Business Units

  2. Create new business unit with test data

  3. Configure payment methods and permissions

πŸ‘₯ Test User Accounts

Test Admin User

  • Role: Admin (full access)

  • Business Unit: Test Corporate BU

  • Permissions: All resources (read, write, admin)

Test Employee User

  • 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 URLs

  • webhook.site: https://webhook.site - For quick webhook testing

  • requestbin.com: https://requestbin.com - For inspecting webhook payloads

Webhook Configuration

Test Webhook Events

All webhook events are triggered in staging:

  • transaction.created

  • transaction.updated

  • transaction.completed

  • payment.completed

  • payment.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]envelope for production rate limit information.

🎯 Provider-Specific Test Credentials

For actual test card numbers and provider-specific testing scenarios:

❗ 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

Last updated