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.
This commit is contained in:
+8
-2
@@ -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=
|
||||
|
||||
Reference in New Issue
Block a user