Spaces:
Sleeping
Sleeping
Update paypal_integration.py
Browse files- paypal_integration.py +2 -2
paypal_integration.py
CHANGED
|
@@ -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://
|
| 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://
|
| 809 |
|
| 810 |
# Create the subscription with PayPal
|
| 811 |
payload = {
|
|
|
|
| 660 |
conn.close()
|
| 661 |
|
| 662 |
# Use environment variable for the app URL
|
| 663 |
+
app_url = os.getenv("APP_URL", "https://doc-vid-analyzer-hardikkandpals-projects.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-hardikkandpals-projects.vercel.app/")
|
| 809 |
|
| 810 |
# Create the subscription with PayPal
|
| 811 |
payload = {
|