Direct payment

Direct Payment is a pseudo payment provider, developed by Litium for testing and direct cash handling tasks.

Direct Payment is a reenginereed version of the DirectPay add-on for Litium 8 and later.

Direct Payment can be used for:

  1. Simulating a payment provider, without having to configure a real one! This could be useful, until you get your accounts configured from a real payment provider.
  2. Allowing the e-commerce administration to place orders and collect money manually.
  3. Custom implementation, for example, to place the purchase order into your ERP system.

Values to replace in template:

  • ports
  • environment
    • AppMetadata__AppUrl
    • LitiumApi__ApiUrl
version: '3'
    restart: unless-stopped
    - "10010:80"
    - "10011:443"
    # Enable HTTPS binding
    - ASPNETCORE_URLS=https://+;http://+
    # Configuration for HTTPS inside the container, exported dotnet dev-certs with corresponding password
    - ASPNETCORE_Kestrel__Certificates__Default__Password=${CERT_PWD}
    - ASPNETCORE_Kestrel__Certificates__Default__Path=/https/localhost.pfx
    # Folder for the configuraiton, this is volume-mapped
    - CONFIG_PATH=/app_config
    # Folder where logfiles should be placed, this is volume-mapped
    - APP_LOG_PATH=/logs
    # Don't validate certificates
    - AppConfiguration__ValidateCertificate=false
    # Url to this app
    - AppMetadata__AppUrl=
    # Url to the litium installation
    - LitiumApi__ApiUrl=
    - ./data/direct-payment/config:/app_config
    - ./data/direct-payment/data:/app_data
    - ./data/direct-payment/logs:/logs
    - ./data/direct-payment/DataProtection-Keys:/root/.aspnet/DataProtection-Keys
    - ./data/https:/https:ro

Configuration file

  "DirectPay": {
    "PaymentAccounts": [
        "Id": "DirectPay",
        "MerchantAccountId": null,
        "Environment": "Live"
  • Id: The payment option id.
  • MerchantAccountId: The merchant acccount identifier. It isn't used for now.
  • Environment: The App environment. It should be "Live" or "Test".