auto recurring testing phase 17
This commit is contained in:
@@ -5,7 +5,7 @@ import colorlog
|
||||
|
||||
# from logging.handlers import TimedRotatingFileHandler
|
||||
|
||||
DEBUG = False
|
||||
DEBUG = True
|
||||
ALLOWED_HOSTS = ["127.0.0.1", "goodtimes.betadelivery.com", "154.41.254.33"]
|
||||
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ class StripeWebhookTest(APIView):
|
||||
event = stripe.Event.construct_from(json.loads(payload), stripe.api_key)
|
||||
event_id = event["id"]
|
||||
event_type = event["type"]
|
||||
principal_id = event["data"]["object"]["metadata"]["principal"]
|
||||
# principal_id = event["data"]["object"]["metadata"]["principal"]
|
||||
stripe_subscription_id = stripe.Subscription.retrieve(
|
||||
event["data"]["object"]["metadata"]["subscription"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user