quantum-ai-v2/core/urls.py
Claude f7cdad4273 Replace hardcoded Stripe payment links with dynamic checkout sessions
- Remove hardcoded payment link URLs that were environment-specific
- Implement dynamic Stripe checkout session creation with automatic domain detection
- Add success/cancel URLs that automatically work on localhost and Railway
- Update StripePaymentHandler to use request.build_absolute_uri() for proper URL generation
- Add wallet top-up success and cancel views with proper user feedback
- This fixes the issue where payment success redirected to old/wrong URLs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 12:25:51 +05:30

17 lines
818 B
Python

from django.urls import path
from . import views
app_name = 'core'
urlpatterns = [
path('', views.homepage_view, name='homepage'),
path('marketplace/', views.marketplace_view, name='marketplace'),
path('pricing/', views.pricing_view, name='pricing'),
path('agents/<slug:agent_slug>/', views.agent_detail_view, name='agent_detail'),
path('wallet/', views.wallet_view, name='wallet'),
path('wallet/topup/', views.wallet_topup_view, name='wallet_topup'),
path('wallet/top-up/success/', views.wallet_topup_success_view, name='wallet_topup_success'),
path('wallet/top-up/cancel/', views.wallet_topup_cancel_view, name='wallet_topup_cancel'),
path('stripe/webhook/', views.stripe_webhook_view, name='stripe_webhook'),
path('api/agents/', views.agents_api_view, name='agents_api'),
]