create customer

This commit is contained in:
CHIEFSOFT\ameye
2025-08-31 19:08:34 -04:00
parent 9dd33a6187
commit 61a6fe3f10
+9 -3
View File
@@ -14,12 +14,18 @@ class StripeIntegration:
@staticmethod
def create_customer(stripe_customer):
logger.info(f"Inside Stripe_Customer ===== : {stripe_customer}")
# customer = stripe.Customer.create(
# email= stripe_customer["email"],
# name=stripe_customer["name"],
# payment_method="pm_card_visa",
# description="Customer for Merms Subscription",
# invoice_settings={"default_payment_method": "pm_card_visa"},
# )
#
customer = stripe.Customer.create(
email= stripe_customer["email"],
name=stripe_customer["name"],
payment_method="pm_card_visa",
description="Customer for Merms Subscription",
invoice_settings={"default_payment_method": "pm_card_visa"},
description="Customer for MERMS Subscription",
)
# payment_method="pm_card_visa", # Replace with a valid payment method ID or attach one later
return customer