addes stipe starter

This commit is contained in:
CHIEFSOFT\ameye
2025-08-10 19:57:01 -04:00
parent ebffcde08c
commit 4fda3ccfe9
6 changed files with 41 additions and 14 deletions
+12 -1
View File
@@ -6,7 +6,7 @@ import logging
from app.api.integrations import KafkaIntegration
from app.config import Config
logger = logging.getLogger(__name__)
from app.api.integrations import StripeIntegration
from flask_mail import Mail, Message
import smtplib
from email.mime.text import MIMEText
@@ -22,6 +22,17 @@ class BaseService:
SEND_EMAIL_PASS = Config.SEND_EMAIL_PASS
THIS_SITE_URL = Config.THIS_SITE_URL
@staticmethod
def addStripeCustomer(customerData):
customer_data = {
"email": customerData["email"],
"name": customerData["name"],
}
stripe_customer = StripeIntegration.create_customer(customer_data)
logger.info(f"Stripe_Customer ===== : {stripe_customer}")
return stripe_customer
@staticmethod
def send_completepass_mail(signup_email, pending_uid, pending_id, firstname, lastname):
msg_body = f"""