create customer
This commit is contained in:
@@ -14,12 +14,18 @@ class StripeIntegration:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def create_customer(stripe_customer):
|
def create_customer(stripe_customer):
|
||||||
logger.info(f"Inside Stripe_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(
|
customer = stripe.Customer.create(
|
||||||
email= stripe_customer["email"],
|
email= stripe_customer["email"],
|
||||||
name=stripe_customer["name"],
|
name=stripe_customer["name"],
|
||||||
payment_method="pm_card_visa",
|
description="Customer for MERMS Subscription",
|
||||||
description="Customer for Merms Subscription",
|
|
||||||
invoice_settings={"default_payment_method": "pm_card_visa"},
|
|
||||||
)
|
)
|
||||||
# payment_method="pm_card_visa", # Replace with a valid payment method ID or attach one later
|
# payment_method="pm_card_visa", # Replace with a valid payment method ID or attach one later
|
||||||
return customer
|
return customer
|
||||||
|
|||||||
Reference in New Issue
Block a user