Skip to content

update_stripe.py #105

@LVT-ENG

Description

@LVT-ENG

import stripe

SUSTITUYE ESTO POR TU CLAVE SECRETA DE STRIPE

stripe.api_key = "TU_STRIPE_SECRET_KEY"

def crear_productos_v10():
productos = [
{"name": "V10-LAFAYETTE-ENTRY-P1", "amount": 2750000, "desc": "Activación V10: Setup 10 Nodos + Exclusividad D9."},
{"name": "V10-ENTRY-GLOBAL", "amount": 2500000, "desc": "Despliegue V10: Instalación 10 Nodos (LVMH/Otros)."},
{"name": "IP-TRANSFER-V10-P1", "amount": 9825000, "desc": "Transferencia de Activos/Licencia IP (Parte 1)."},
{"name": "IP-TRANSFER-V10-P2", "amount": 9825000, "desc": "Transferencia de Activos/Licencia IP (Parte 2)."},
{"name": "V10-ANUAL-PREPAGO", "amount": 9800000, "desc": "Abono Anual 10 nodos (Ahorro 20k) + 8% Comisión sobre ventas."},
]

for p in productos:
    prod = stripe.Product.create(name=p["name"], description=p["desc"])
    stripe.Price.create(
        unit_amount=p["amount"],
        currency="eur",
        product=prod.id,
    )
    print(f"✅ Producto Creado: {p['name']}")

# CREACIÓN DE LA SUSCRIPCIÓN MENSUAL (9.900€)
mensual = stripe.Product.create(
    name="V10-MANTENIMIENTO-MENSUAL",
    description="Canon mensual 10 nodos + 8% Comisión sobre ventas."
)
stripe.Price.create(
    unit_amount=990000,
    currency="eur",
    recurring={"interval": "month"},
    product=mensual.id,
)
print("✅ Suscripción Mensual Creada: 9.900€")

if name == "main":
crear_productos_v10()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions