Spaces:
Sleeping
Sleeping
Update paypal_integration.py
Browse files- paypal_integration.py +3 -3
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", "https://doc-vid-analyzer
|
356 |
|
357 |
payload = {
|
358 |
"plan_id": plans[plan_id],
|
@@ -660,7 +660,7 @@ def create_user_subscription_mock(user_email, tier):
|
|
660 |
conn.close()
|
661 |
|
662 |
# Use environment variable for the app URL
|
663 |
-
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer
|
664 |
|
665 |
# Return success with mock approval URL that matches the real PayPal URL pattern
|
666 |
return True, {
|
@@ -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
|
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.vercel.app")
|
356 |
|
357 |
payload = {
|
358 |
"plan_id": plans[plan_id],
|
|
|
660 |
conn.close()
|
661 |
|
662 |
# Use environment variable for the app URL
|
663 |
+
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer.vercel.app")
|
664 |
|
665 |
# Return success with mock approval URL that matches the real PayPal URL pattern
|
666 |
return True, {
|
|
|
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.vercel.app")
|
809 |
|
810 |
# Create the subscription with PayPal
|
811 |
payload = {
|