Files
aethas-free/modules/paypal.py
T
xavier a4490944f1
Build and Push Docker Image / build-and-push (push) Successful in 1m48s
fix: Integration officielle du widget de don PayPal utilisateur et stabilisation
2026-08-19 03:14:24 +02:00

19 lines
738 B
Python

import os
from fasthtml.common import *
def render_paypal_donation_widget():
"""Génère le bouton de don PayPal pour l'interface sidebar avec le lien configuré."""
# Récupération depuis l'environnement ou utilisation directe de votre lien officiel
paypal_url = os.environ.get("PAYPAL_DONATION_LINK", "https://www.paypal.com/donate/?hosted_button_id=2B6T9UESCN2W6")
return Div(
A(
"☕ Soutenir l'hébergeur",
href=paypal_url,
target="_blank",
cls="export-btn",
style="text-align: center; color: #00e5ff; border-color: #00e5ff; display: block; text-decoration: none; margin-top: 10px;"
),
style="margin-top: 10px;"
)