Telegram Stripe Bot - Java Payment Automation
A lightweight Telegram bot that generates Stripe Checkout payment links from chat input, built in raw Java and deployed via Docker on Raspberry Pi (ARM32).
- Java 17
- TelegramBots API
- Stripe Java SDK
- Docker
- ARM32
- Maven
- SLF4J
- Logback
A minimal Telegram bot designed to streamline payment collection for small sellers. The bot collects product details directly in chat (name, quantity, price, currency) and generates a Stripe Checkout session link for one-time payments. Built as a framework-free Java application focused on simplicity, low resource usage, and portable deployment, including ARM32 Docker builds for Raspberry Pi hosting.
Key Features & Details
- Implemented chat-based product + pricing flow and automated generation of Stripe Checkout payment links
- Integrated Stripe Checkout via Stripe Java SDK to create single-payment sessions securely
- Built framework-free Java service with minimal dependencies for fast startup and low memory usage
- Containerized the application and delivered ARM32-compatible Docker images for Raspberry Pi deployments
- Configured runtime via environment variables with optional properties-based fallback for flexible deployments
- Added structured logging using SLF4J + Logback for easier troubleshooting and observability
graph TD
Seller[Seller in Telegram] --> Bot[Java Telegram Bot]
Bot --> Stripe[Stripe Checkout Session]
Stripe --> Link[Payment Link]
Bot --> Seller
Purpose: Enable quick payment link creation directly from Telegram without building a full storefront UI.
Bonus: Used this project to experiment with multi-architecture Docker image builds (ARM32 for Raspberry Pi) and validate how far a small, framework-free Java service can go in terms of memory efficiency and operational simplicity.