Spaces:
Sleeping
Sleeping
Update paypal_integration.py
Browse files- paypal_integration.py +2 -2
paypal_integration.py
CHANGED
@@ -352,7 +352,7 @@ def create_subscription_link(plan_id):
|
|
352 |
return None
|
353 |
|
354 |
# Use environment variable for the app URL to make it work in different environments
|
355 |
-
app_url = os.getenv("APP_URL", "
|
356 |
|
357 |
payload = {
|
358 |
"plan_id": plans[plan_id],
|
@@ -805,7 +805,7 @@ def create_user_subscription(user_email, tier):
|
|
805 |
return False, f"No plan found for tier: {tier}"
|
806 |
|
807 |
# Use environment variable for the app URL
|
808 |
-
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer-hardikkandpals-projects.vercel.app
|
809 |
|
810 |
# Create the subscription with PayPal
|
811 |
payload = {
|
|
|
352 |
return None
|
353 |
|
354 |
# Use environment variable for the app URL to make it work in different environments
|
355 |
+
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer-hardikkandpals-projects.vercel.app")
|
356 |
|
357 |
payload = {
|
358 |
"plan_id": plans[plan_id],
|
|
|
805 |
return False, f"No plan found for tier: {tier}"
|
806 |
|
807 |
# Use environment variable for the app URL
|
808 |
+
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer-hardikkandpals-projects.vercel.app")
|
809 |
|
810 |
# Create the subscription with PayPal
|
811 |
payload = {
|