From 61a6fe3f1033cadbcfc8d8586f9576e924cca9c2 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 31 Aug 2025 19:08:34 -0400 Subject: [PATCH] create customer --- app/api/integrations/merms_stripe.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/api/integrations/merms_stripe.py b/app/api/integrations/merms_stripe.py index 6af5fdf..83bd414 100644 --- a/app/api/integrations/merms_stripe.py +++ b/app/api/integrations/merms_stripe.py @@ -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