diff --git a/app/application/services/billing_service.py b/app/application/services/billing_service.py index b8768c1..ef3668b 100644 --- a/app/application/services/billing_service.py +++ b/app/application/services/billing_service.py @@ -1306,6 +1306,9 @@ def create_topup_checkout( "line_items[0][price_data][product_data][description]": "Recarga de créditos de uso sobre tu licencia actual (misma clave).", "client_reference_id": lic.id, } + img = (getattr(settings, "TOPUP_PRODUCT_IMAGE_URL", "") or "").strip() + if img.startswith("https://"): + form["line_items[0][price_data][product_data][images][0]"] = img if getattr(settings, "TOPUP_REQUIRE_TOS_CONSENT", False): form["consent_collection[terms_of_service]"] = "required" if settings.TOPUP_TAX_CODE: diff --git a/app/config.py b/app/config.py index 06d9381..5f49684 100644 --- a/app/config.py +++ b/app/config.py @@ -91,6 +91,7 @@ class Settings(BaseSettings): TOPUP_STRIPE_API_VERSION: str = "2025-03-31.basil" # managed_payments needs basil or later TOPUP_RETURN_ORIGINS: str = "https://mcp.keyflint.dev,https://keyflint.dev" TOPUP_DEFAULT_RETURN_URL: str = "https://mcp.keyflint.dev/saldo/" + TOPUP_PRODUCT_IMAGE_URL: str = "https://mcp.keyflint.dev/assets/brand/stripe-recarga-v1.png" # Checkout line-item image; "" disables ADMIN_API_KEY: str = "kf_dev_admin_key_change_in_prod" # Transactional Email Dispatch (Resend / SMTP) diff --git a/docs/apple-touch-icon.png b/docs/apple-touch-icon.png index 4d6f40b..8bf50b7 100644 Binary files a/docs/apple-touch-icon.png and b/docs/apple-touch-icon.png differ diff --git a/docs/dpa.html b/docs/dpa.html index c146729..37badf6 100644 --- a/docs/dpa.html +++ b/docs/dpa.html @@ -116,11 +116,11 @@ text-align: center; } - - - - - + + + + +