Implementacion Inicial SumUP

This commit is contained in:
adevopg
2025-03-02 17:37:33 +01:00
parent 34eec87bf2
commit 6365624e25
9 changed files with 193 additions and 3 deletions
+12 -1
View File
@@ -293,4 +293,15 @@ class StripeLog(models.Model):
timestamp = models.DateTimeField(auto_now_add=True) # Fecha y hora
def __str__(self):
return f"{self.username} compró {self.product_name} por {self.amount}€ ({self.mode})"
return f"{self.username} compró {self.product_name} por {self.amount}€ ({self.mode})"
class Pedido(models.Model):
transaction_id = models.CharField(max_length=100, unique=True, null=True, blank=True)
email_cliente = models.EmailField()
estado = models.CharField(max_length=20, default="Pendiente")
monto = models.DecimalField(max_digits=10, decimal_places=2)
def __str__(self):
return f"Pedido {self.transaction_id} - {self.estado}"