Remove some debug code

This commit is contained in:
2022-07-21 13:50:56 +01:00
parent 4b4b8bfe72
commit 79b1f7676e
6 changed files with 23 additions and 231 deletions

View File

@@ -56,13 +56,10 @@ def update_customer_fields(stripe_id, email=None, first_name=None, last_name=Non
"""
Update the customer fields in Stripe.
"""
print("Update customer fields called")
if email:
print("Email modified")
stripe.Customer.modify(stripe_id, email=email)
logger.info(f"Modified Stripe customer {stripe_id} to have email {email}")
if first_name or last_name:
print("Name modified")
name = expand_name(first_name, last_name)
stripe.Customer.modify(stripe_id, name=name)
logger.info(f"Modified Stripe customer {stripe_id} to have email {name}")