From 6f3b727cc7905bd821db6195197ad0071cc40d8e Mon Sep 17 00:00:00 2001 From: machka-pasla Date: Thu, 4 Sep 2025 20:08:37 +0300 Subject: [PATCH] Update .env.example to include YooKassa autopayments configuration - Added new environment variables for enabling/disabling YooKassa autopayments, enhancing payment method management. - Updated comments to clarify the relationship between autopayments and receipt fields, improving documentation for developers. --- .env.example | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index ac2c427..7505ffc 100644 --- a/.env.example +++ b/.env.example @@ -29,8 +29,14 @@ YOOKASSA_SECRET_KEY=your_secret_key YOOKASSA_RETURN_URL=https://t.me/your_bot YOOKASSA_DEFAULT_RECEIPT_EMAIL=your_email@example.com YOOKASSA_VAT_CODE=1 -YOOKASSA_PAYMENT_MODE=full_prepayment -YOOKASSA_PAYMENT_SUBJECT=payment + +# Recurring payments master toggle for YooKassa +# false: one-time payments only; true: enable saving cards, manage methods UI, auto-renew +YOOKASSA_AUTOPAYMENTS_ENABLED=false + +# Receipt fields are set automatically based on YOOKASSA_AUTOPAYMENTS_ENABLED: +# - when false: YOOKASSA_PAYMENT_MODE=full_prepayment; YOOKASSA_PAYMENT_SUBJECT=payment +# - when true: YOOKASSA_PAYMENT_MODE=service; YOOKASSA_PAYMENT_SUBJECT=full_payment # CryptoBot Payment Gateway Configuration CRYPTOPAY_TOKEN=