base of payment gateway
This commit is contained in:
@@ -120,3 +120,13 @@ class OrderItemModel(models.Model):
|
||||
def __str__(self):
|
||||
return f'({self.product}) - ({self.order.user})'
|
||||
|
||||
|
||||
#TODO complate this shit
|
||||
class PaymentModel(models.Model):
|
||||
amount = models.PositiveIntegerField()
|
||||
status = models.CharField(max_length=50, default='Pending')
|
||||
tracking_code = models.CharField(max_length=100, blank=True)
|
||||
bank_type = models.CharField(max_length=100)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
def __str__(self):
|
||||
return 'payment'
|
||||
Reference in New Issue
Block a user