Added Hosting Order model, Created Billing Address Model , Method to create a customer using Stripe API , Created Customer Stripe profile to store for further charges , Method in order to charge an amount to a customer
This commit is contained in:
parent
f5978a7da9
commit
bf334a38d4
17 changed files with 281 additions and 42 deletions
|
|
@ -1,8 +1,18 @@
|
|||
from django.db import models
|
||||
|
||||
from .fields import CountryField
|
||||
|
||||
# Create your models here.
|
||||
|
||||
|
||||
class BillingAddress(models.Model):
|
||||
street_address = models.CharField(max_length=100)
|
||||
city = models.CharField(max_length=50)
|
||||
postal_code = models.CharField(max_length=50)
|
||||
country = CountryField()
|
||||
|
||||
|
||||
|
||||
class ContactMessage(models.Model):
|
||||
name = models.CharField(max_length=200)
|
||||
email = models.EmailField()
|
||||
|
|
@ -11,4 +21,4 @@ class ContactMessage(models.Model):
|
|||
received_date = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
def __str__(self):
|
||||
return "%s - %s - %s" % (self.name, self.email, self.received_date)
|
||||
return "%s - %s - %s" % (self.name, self.email, self.received_date)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue