styripe fix
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import stripe
|
||||
import json
|
||||
import logging
|
||||
from app.config import settings
|
||||
from app.config import settings, Config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
stripe.api_key = settings.STRIPE_PRIV_KEY
|
||||
|
||||
class StripeIntegration:
|
||||
STRIPE_SUCCESS_URL = Config.STRIPE_SUCCESS_URL
|
||||
STRIPE_CANCEL_URL= Config.STRIPE_CANCEL_URL
|
||||
|
||||
@staticmethod
|
||||
def create_customer(stripe_customer):
|
||||
@@ -58,8 +60,8 @@ class StripeIntegration:
|
||||
},
|
||||
],
|
||||
mode='subscription',
|
||||
success_url='https://qa-panel.mermsemr.com/subscription-success?session_id={CHECKOUT_SESSION_ID}',
|
||||
cancel_url='https://qa-panel.mermsemr.com/subscription',
|
||||
success_url= StripeIntegration.STRIPE_SUCCESS_URL,
|
||||
cancel_url=StripeIntegration.STRIPE_CANCEL_URL,
|
||||
)
|
||||
return checkout_session
|
||||
except stripe.error.StripeError as e:
|
||||
|
||||
Reference in New Issue
Block a user