Direct payment prerelease
Note! The Direct payment pre-release is for Litium 8.1 pre-release version.
Direct Payment is a pseudo payment provider, developed by Litium for testing and direct cash handling tasks.
The Direct Payment App is a reengineered version of the DirectPay add-on for Litium 8 and later.
Direct Payment can be used for:
- 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.
- Allowing the e-commerce administration to place orders and collect money manually.
- Custom implementation, for example, to place the purchase order into your ERP system.
Values to replace in the template:
- ports
- environment
- ASPNETCORE_HTTPS_PORT
- AppMetadata__AppUrl
- LitiumApi__ApiUrl
version: '3'
services:
direct-payment:
image: registry.litium.cloud/apps/direct-payment:latest
dns:
- 192.168.65.2
restart: unless-stopped
ports:
- "10010:80"
- "10011:443"
environment:
# Enable HTTPS binding
- ASPNETCORE_URLS=https://+;http://+
- ASPNETCORE_HTTPS_PORT=10011
# 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=https://customer-app-direct-payment.localtest.me:10011
# Url to the litium installation
- LitiumApi__ApiUrl=https://customer.localtest.me:5001
volumes:
- ./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 account identifier. It isn't used for now.
- Environment: The App environment. It should be "Live" or "Test".