addes stipe starter
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user