We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea66bc0 commit 5c6c4afCopy full SHA for 5c6c4af
readthedocs/payments/utils.py
@@ -14,7 +14,7 @@ def delete_customer(customer_id):
14
"""Delete customer from Stripe, cancelling subscriptions"""
15
try:
16
customer = stripe.Customer.retrieve(customer_id)
17
- customer.delete()
+ return customer.delete()
18
except stripe.error.InvalidRequestError:
19
pass
20
@@ -25,6 +25,6 @@ def cancel_subscription(customer_id, subscription_id):
25
26
if hasattr(customer, 'subscriptions'):
27
subscription = customer.subscriptions.retrieve(subscription_id)
28
- subscription.delete()
+ return subscription.delete()
29
except stripe.error.StripeError:
30
0 commit comments