Remove some debug code
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user