mirror of
https://github.com/thecyberlearn/quantum-ai-v2.git
synced 2026-08-18 12:32:59 +00:00
- 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>
17 lines
818 B
Python
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'),
|
|
] |