Refactored some code
This commit is contained in:
parent
7e1bfc9fab
commit
35736ae593
|
@ -90,7 +90,8 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
|
|||
|
||||
def set_subscription_id(self, subscription_object):
|
||||
"""
|
||||
When creating a subscription, we have subscription id. We store this in the subscription_id field
|
||||
When creating a Stripe subscription, we have subscription id. We store this in the subscription_id field.
|
||||
This method sets the subscription id from subscription_object.
|
||||
|
||||
:param subscription_object: Stripe's subscription object
|
||||
:return:
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import logging
|
||||
|
||||
import stripe
|
||||
from django.conf import settings
|
||||
|
||||
from datacenterlight.models import StripePlan
|
||||
|
||||
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY
|
||||
|
|
Loading…
Reference in a new issue