Refactored some code
This commit is contained in:
parent
7e1bfc9fab
commit
35736ae593
2 changed files with 2 additions and 3 deletions
|
@ -90,7 +90,8 @@ class HostingOrder(AssignPermissionsMixin, models.Model):
|
||||||
|
|
||||||
def set_subscription_id(self, subscription_object):
|
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
|
:param subscription_object: Stripe's subscription object
|
||||||
:return:
|
:return:
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import stripe
|
import stripe
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
from datacenterlight.models import StripePlan
|
from datacenterlight.models import StripePlan
|
||||||
|
|
||||||
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY
|
stripe.api_key = settings.STRIPE_API_PRIVATE_KEY
|
||||||
|
|
Loading…
Reference in a new issue