QR code web service Docker
📌 Core Functional Modules
1. Payment Notification API
• Endpoint: POST /api/payment/notify
• Function: Receives payment data (e.g., amount, transaction_ref, timestamp, source).
• Security:
• API Key verification via X-API-KEY header.
• Duplicate transaction prevention using transaction_ref.
• Data Storage: Records saved to SQLite database.
• Webhook: Triggers real-time push if enabled.
2. Webhook Push System
• Asynchronous push to an external WEBHOOK_URL when a payment is received.
• Features:
• HMAC-SHA256 signature generation using WEBHOOK_SECRET.
• Retry logic on failure (with max attempts defined in .env).
• Full push log history viewable at /webhook/logs.
• Manual retry supported from the UI.
3. QR Code Redraw API
• Endpoint: POST /api/parse-qr
• Function: Reconstructs and beautifies a DuitNow QR code from raw payload or image.
• Output: QR code image (JPG format), optionally with top-positioned logo.