create customer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user