auto recurring testing phase 17
This commit is contained in:
@@ -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