payments: Platega + YooKassa integration, opt-in via PAYMENTS_ENABLED
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
c9955b2774
commit
5b30d1f148
6 changed files with 326 additions and 8 deletions
23
.env.example
23
.env.example
|
|
@ -31,3 +31,26 @@ XRAY_SHORT_ID_XHTTP=
|
|||
|
||||
# Public hostname clients connect to for the local node (A record -> this server)
|
||||
DE1_ADDRESS=de1.example.com
|
||||
|
||||
# Payments — off by default, bot keeps handing out free subscriptions on button press.
|
||||
# Flip to true only once at least one provider below is configured and its webhook is live.
|
||||
PAYMENTS_ENABLED=false
|
||||
|
||||
# Prices in RUB per plan (whole numbers). Only used when PAYMENTS_ENABLED=true.
|
||||
PRICE_7D=150
|
||||
PRICE_1M=399
|
||||
PRICE_3M=999
|
||||
PRICE_6M=1799
|
||||
PRICE_1Y=2999
|
||||
|
||||
# ЮKassa — https://yookassa.ru, shop id + secret key from your account settings.
|
||||
# Webhook to add in their dashboard: https://<PANEL_DOMAIN>/payments/webhook/yookassa
|
||||
YOOKASSA_ENABLED=false
|
||||
YOOKASSA_SHOP_ID=
|
||||
YOOKASSA_SECRET_KEY=
|
||||
|
||||
# Platega — https://platega.io, merchant id + secret from your manager.
|
||||
# Webhook to add in their dashboard: https://<PANEL_DOMAIN>/payments/webhook/platega
|
||||
PLATEGA_ENABLED=false
|
||||
PLATEGA_MERCHANT_ID=
|
||||
PLATEGA_SECRET=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue