payback-coupons-activator

PayBack Coupons Activator

The software is a coupon activation tool that automates the process of redeeming coupons on PayBack. With this software, users can easily activate all their available coupons with just a few clicks, eliminating the need for manual input and saving time. The software is designed to be user-friendly and easy to operate, making it accessible to individuals with varying levels of technical expertise. Users can simply input their login credentials and select the coupons they want to activate, and the software will handle the rest.

Installation

For usage of the project you need Node & npm installed on your machine. The minimal required version of Node is 24 and for npm is 11.

cd payback-coupons-activator
npm install

Usage

Preparing

Copy .env to .env.local and replace the variables with your own data.

cp .env .env.local
mode="production"
userEmailOrId="TYPE_YOUR_ID_OR_EMAIL"
userPassword="TYPE_YOUR_PASSWORD"
TELEGRAM_BOT_TOKEN="YOUR_TELEGRAM_BOT_TOKEN"
TELEGRAM_CHAT_ID="YOUR_TELEGRAM_CHAT_ID"
Variable Description
mode production (headless) or debug
userEmailOrId Your PayBack email or customer number
userPassword Your PayBack password
TELEGRAM_BOT_TOKEN Telegram Bot API token (optional, from @BotFather)
TELEGRAM_CHAT_ID Your Telegram chat ID (optional, for notifications)

Run

npm run activatePaybackCoupons

Headed mode (visible browser)

npm run activatePaybackCoupons:headed

Debugging

npm run activatePaybackCoupons:debug

Docker

docker compose up --build

The container runs the script once on startup and then daily at 08:00 via cron.

Contributing

Pull-Request are welcome.

For major changes, please open an Issue first to discuss what you would like to change.

Fork

License

The Unlicense